﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Base;
    using Common.Class;
    using APP.HELPER.Utils.Language;
    using Security.Security;
    using Dictionary.ERP;

    using HRM.CORE;
    using HRM.CORE.CLASS;
    using HRM.CORE.REPORT;



    using System; using Extra.ERP;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Extra.ERP;
    using Common.Environment;
    using Common;

    public class xucSalary : Common.xucBase
    {
        private GridBand bandAllowance;
        private GridBand bandSalaryOvertime;
        private GridBand bandTaxAllowance;
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeMonth;
        private BarEditItem bbeSalaryName;
        private BarEditItem bbeYear;
        private BarButtonItem bbiAdd;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFinish;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiLock;
        private BarButtonItem bbiOpen;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiRecal;
        private BarButtonItem bbiReload;
        private BarButtonItem bbiSalaryPay;
        private BarButtonItem bbiSendMail;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private BandedGridColumn colAbsentL;
        private BandedGridColumn colAbsentWOL;
        private BandedGridColumn colAdvance;
        private BandedGridColumn colAllowance;
        private BandedGridColumn colAllowanceInsurance;
        private BandedGridColumn colAssignment;
        private BandedGridColumn colAssignmentDebt;
        private BandedGridColumn colAssignmentPay;
        private BandedGridColumn colBasicSalary;
        private BandedGridColumn colBranchName;
        private BandedGridColumn colClockingError;
        private BandedGridColumn colClockingErrorBegin;
        private BandedGridColumn colClockingErrorEnd;
        private BandedGridColumn colCoefficientSalary;
        private BandedGridColumn colCompensationDay;
        private BandedGridColumn colDateSalary;
        private BandedGridColumn colDepartmentName;
        private BandedGridColumn colDependMoney;
        private BandedGridColumn colEmployeeCode;
        private BandedGridColumn colFirstName;
        private BandedGridColumn colFurloughDay;
        private BandedGridColumn colGroupName;
        private BandedGridColumn colHealthInsurance;
        private BandedGridColumn colHealthInsurance1;
        private BandedGridColumn colIncomeTax;
        private BandedGridColumn colIncomeTaxMoney;
        private BandedGridColumn colIncomeTaxRemain;
        private BandedGridColumn colInsurance;
        private BandedGridColumn colInsurance1;
        private BandedGridColumn colInsuranceSalary;
        private BandedGridColumn colLastName;
        private BandedGridColumn colLateEarlyHour;
        private BandedGridColumn colMinusLateEarly;
        private BandedGridColumn colMinusMoney;
        private BandedGridColumn colNumberDepend;
        private BandedGridColumn colOvertime150;
        private BandedGridColumn colOvertime195;
        private BandedGridColumn colOvertime200;
        private BandedGridColumn colOvertime260;
        private BandedGridColumn colOvertime300;
        private BandedGridColumn colOvertime390;
        private BandedGridColumn colOvertimeTotal1;
        private BandedGridColumn colRealDay;
        private BandedGridColumn colRegulationDay;
        private BandedGridColumn colRemainSalary;
        private BandedGridColumn colSalary;
        private BandedGridColumn colSalaryDebt;
        private BandedGridColumn colSalaryHour;
        private BandedGridColumn colSalaryMinus;
        private BandedGridColumn colSalaryMinusBefore;
        private BandedGridColumn colSalaryOvertime;
        private BandedGridColumn colSalaryPay;
        private BandedGridColumn colSalaryPlus;
        private BandedGridColumn colSalaryPlusBefore;
        private BandedGridColumn colSocialInsurance;
        private BandedGridColumn colSocialInsurance1;
        private BandedGridColumn colStipulatedDay;
        private BandedGridColumn colStipulatedTime;
        private BandedGridColumn colTaxOvertime150Money;
        private BandedGridColumn colTaxOvertime195Money;
        private BandedGridColumn colTaxOvertime200Money;
        private BandedGridColumn colTaxOvertime260Money;
        private BandedGridColumn colTaxOvertime300Money;
        private BandedGridColumn colTaxOvertime390Money;
        private BandedGridColumn colTaxYourSelfMoney;
        private BandedGridColumn colTotalSalary;
        private BandedGridColumn colUnemploymentInsurance;
        private BandedGridColumn colUnemploymentInsurance1;
        private BandedGridColumn colUnion;
        private BandedGridColumn colUnion1;
        private BandedGridColumn colWorkHour;
        private BandedGridColumn colWorkSalary;
        private BandedGridColumn colWorkSalary1;
        private BandedGridColumn colWorkTotal;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private ControlContainer dockPanel2_Container;
        private DockPanel dpFooter;
        private FlowLayoutPanel flowLayoutPanel1;
        private FlowLayoutPanel flowLayoutPanel2;
        private FlowLayoutPanel flowLayoutPanel3;
        public AdvBandedGridView gbList;
        public GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand10;
        private GridBand gridBand11;
        private GridBand gridBand12;
        private GridBand gridBand13;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private GridBand gridBand5;
        private GridBand gridBand6;
        private GridBand gridBand7;
        private GridBand gridBand8;
        private GridBand gridBand9;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private LabelControl lbBranchName;
        private LabelControl lbCompanyName;
        private LabelControl lbDepartmentName;
        private LabelControl lbGroupName;
        private LabelControl lbMessage;
        private LabelControl lbMessage1;
        private LabelControl lbSalaryName;
        private string m_Code = MyLogin.Code;
        private string m_CompanyName = "";
        private string m_EmployeeCode = "";
        private bool m_IsFinish = false;
        private bool m_IsLock = false;
        private int m_Level = MyLogin.Level;
        private int m_Month = 0;
        private Guid m_SalaryTableListID = Guid.Empty;
        private int m_Year = 0;
        private PanelControl panelControl1;
        private PopupMenu popupMenu1;
        private PictureBox ptFinish;
        private PictureBox ptLock;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemTimeEdit repMonth;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemTimeEdit repYear;
        private SimpleButton simpleButton1;
        private xucExpandCollapseButton xucExpandCollapseButton1;
        private xucOrganization xucOrganization1;
        private xucSalaryCard xucSalaryCard1;

        public event ClosedHander Closed;

        public event PayEventHander PayEvented;

        public xucSalary()
        {
            this.InitializeComponent();
            base.RestoreLayout(this.gbList, this);
            this.InitMultiLanguages();
            this.InitAllowanceColumn();
            this.InitSalaryOvertimeColumn();
            this.Init();
            this.LoadInterface();
        }

        private void bbiAdd_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.CreateTableSalary();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHander();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Lương", "Xuất");
            base.Export();
        }

        private void bbiFinish_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (!ClsOption.System2.IsQuestion || (XtraMessageBox.Show("Bạn c\x00f3 chắc l\x00e0 muốn thực hiện t\x00e1c vụ n\x00e0y kh\x00f4ng?" + Environment.NewLine + " T\x00e1c vụ n\x00e0y được hiểu l\x00e0 bạn đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No))
            {
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                if (hrm_salary_tablelist.Finish(this.m_SalaryTableListID).ToString() == "OK")
                {
                    this.m_IsLock = true;
                    this.m_IsFinish = true;
                    this.InitInterface();
                }
                else
                {
                    MessageBox.Show("Fail!");
                }
            }
        }

        private void bbiLock_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Lock(this.m_SalaryTableListID).ToString() == "OK")
            {
                this.m_IsLock = true;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiOpen_ItemClick(object sender, ItemClickEventArgs e)
        {
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Open(this.m_SalaryTableListID).ToString() == "OK")
            {
                this.m_IsLock = false;
                this.InitInterface();
            }
            else
            {
                MessageBox.Show("Fail!");
            }
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            try
            {
                new xfmOptionPrintSalary(this.m_Level, this.m_Code, this.m_Month, this.m_Year, this.m_EmployeeCode).ShowDialog();
            }
            catch
            {
                new xfmOptionPrintSalary(this.m_Level, this.m_Code, this.m_Month, this.m_Year, "").ShowDialog();
            }
        }

        private void bbiRecal_ItemClick(object sender, ItemClickEventArgs e)
        {
            Options.SetWaitDialogCaption("Đang t\x00ednh lại lương...");
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
            dic_salary_formula.Get();
            hrm_salary_tablelist.Update(this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year, dic_salary_formula.SocialInsurance, dic_salary_formula.HealthInsurance, dic_salary_formula.UnemploymentInsurance, dic_salary_formula.SocialInsurance1, dic_salary_formula.HealthInsurance1, dic_salary_formula.UnemploymentInsurance1, dic_salary_formula.OvertimeSaturdayType, false, false);
            clsSalaryOption option = new clsSalaryOption();
            HRM_SALARY_ALLOWANCE.Create(this.m_SalaryTableListID.ToString(), option.IsAllowanceReCreate);
            HRM_SALARY.Create(this.m_Level, this.m_Code, this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year);
            this.LoadGrid(this.m_Level, this.m_Code);
            Options.HideDialog();
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.InitSalaryOvertimeColumn();
            this.InitAllowanceColumn();
            this.LoadSalaryMonth();
        }

        private void bbiSalaryPay_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaisePayEventHander(this.m_Month, this.m_Year);
        }

        private void bbiSendMail_ItemClick(object sender, ItemClickEventArgs e)
        {
            SendReportMail.LoginSuccessHander hander = null;
            SendReportMail.SendHander hander2 = null;
            if (WinInet.IsConnectedToInternet())
            {
                SendReportMail mail = new SendReportMail();
                if (!mail.IsLoginMail())
                {
                    if (hander == null)
                    {
                        hander = s => this.SendMail("", true);
                    }
                    mail.LoginSuccessed += hander;
                    if (hander2 == null)
                    {
                        hander2 = (s, content, attach) => this.SendMail(content, attach);
                    }
                    mail.Sended += hander2;
                    mail.LoginMail(2);
                }
                else
                {
                    Common.Class.clsAllOption option = new Common.Class.clsAllOption();
                    if (!option.ShowSendMail)
                    {
                        this.SendMail("", true);
                    }
                    else
                    {
                        xfmMailContent xfmMailContent = new xfmMailContent(2);
                        xfmMailContent.Sended += delegate(object s, string content, bool attach)
                        {
                            xfmMailContent.Close();
                            this.SendMail(content, attach);
                        };
                        xfmMailContent.ShowDialog();
                    }
                }
            }
            else
            {
                XtraMessageBox.Show("Vui l\x00f2ng kiểm tra lại kết nối với mạng internet!");
            }
        }

        private void CreateTableSalary()
        {
            Options.SetWaitDialogCaption("Đang khởi tạo dữ liệu...");
            HRM_TIMEKEEPER_TABLELIST hrm_timekeeper_tablelist = new HRM_TIMEKEEPER_TABLELIST();
            if (!hrm_timekeeper_tablelist.Exist(this.m_Month, this.m_Year))
            {
                MessageBox.Show("Bảng chấm c\x00f4ng th\x00e1ng n\x00e0y chưa được khởi tạo! Vui l\x00f2ng tạo bảng chấm c\x00f4ng trước khi thực hiện t\x00ednh lương!");
                Options.HideDialog();
            }
            else
            {
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
                dic_salary_formula.Get();
                if (!hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
                {
                    this.m_SalaryTableListID = Guid.NewGuid();
                    if (hrm_salary_tablelist.Insert(this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year, dic_salary_formula.SocialInsurance, dic_salary_formula.HealthInsurance, dic_salary_formula.UnemploymentInsurance, dic_salary_formula.SocialInsurance1, dic_salary_formula.HealthInsurance1, dic_salary_formula.UnemploymentInsurance1, dic_salary_formula.OvertimeSaturdayType, false, false) == "OK")
                    {
                        HRM_SALARY_ALLOWANCE.Create(this.m_SalaryTableListID.ToString(), true);
                        HRM_SALARY.Create(this.m_Level, this.m_Code, this.m_SalaryTableListID.ToString(), this.bbeSalaryName.EditValue.ToString(), this.m_Month, this.m_Year);
                    }
                }
                this.LoadSalaryMonth();
                Options.HideDialog();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void dpFooter_VisibilityChanged(object sender, VisibilityChangedEventArgs e)
        {
            if ((this.dpFooter.Visibility == DockVisibility.AutoHide) || (this.dpFooter.Visibility == DockVisibility.Hidden))
            {
                SaveStyle(false);
            }
            else
            {
                SaveStyle(true);
            }
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
            this.LoadSalaryCard();
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList, this);
            }
        }

        private void gcList_Click(object sender, EventArgs e)
        {
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.lbCompanyName.Text = this.m_CompanyName = "";// MyInfo.Company;
            }
            this.lbBranchName.Text = "";
            this.lbDepartmentName.Text = "";
            this.lbGroupName.Text = "";
            this.m_Month = this.clsAllOption.MonthDefault.Month;
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.bbeMonth.EditValue = this.clsAllOption.MonthDefault;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.LoadSalaryMonth();
            this.repMonth.EditValueChanging += new ChangingEventHandler(this.repMonth_EditValueChanging);
            this.repMonth.EditValueChanged += new EventHandler(this.repMonth_EditValueChanged);
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.xucSalaryCard1.Updated += new xucSalaryCard.UpdatedHandler(this.xucSalaryCard1_Updated);
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate(object s, HRM.CORE.Organization o)
            {
                HRM_GROUP hrm_group = new HRM_GROUP();
                HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                HRM_BRANCH hrm_branch = new HRM_BRANCH();
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                    this.lbCompanyName.Text = this.m_CompanyName;
                    this.lbBranchName.Text = "";
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                    hrm_branch.Get(o.BranchCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_branch.BranchName;
                    this.lbDepartmentName.Text = "";
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                    hrm_department.Get(o.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "";
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                    hrm_group.Get(o.GroupCode);
                    hrm_department.Get(hrm_group.DepartmentCode);
                    this.lbCompanyName.Text = "";
                    this.lbBranchName.Text = hrm_department.BranchName;
                    this.lbDepartmentName.Text = hrm_department.DepartmentName;
                    this.lbGroupName.Text = "/ " + hrm_group.GroupName;
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
            this.DoHide();
        }

        private void InitAllowanceColumn()
        {
            List<BandedGridColumn> list = new List<BandedGridColumn>();
            foreach (BandedGridColumn column in this.bandAllowance.Columns)
            {
                if ((column != this.colAllowance) && (column != this.colTotalSalary))
                {
                    list.Add(column);
                }
            }
            foreach (BandedGridColumn column in list)
            {
                this.gbList.Columns.Remove(column);
            }
            List<BandedGridColumn> list2 = new List<BandedGridColumn>();
            foreach (BandedGridColumn column in this.bandTaxAllowance.Columns)
            {
                if (((((column != this.colNumberDepend) && (column != this.colDependMoney)) && ((column != this.colTaxYourSelfMoney) && (column != this.colTaxOvertime150Money))) && (((column != this.colTaxOvertime200Money) && (column != this.colTaxOvertime300Money)) && ((column != this.colTaxOvertime195Money) && (column != this.colTaxOvertime260Money)))) && (column != this.colTaxOvertime390Money))
                {
                    list2.Add(column);
                }
            }
            foreach (BandedGridColumn column in list2)
            {
                this.gbList.Columns.Remove(column);
            }
            DIC_ALLOWANCE dic_allowance = new DIC_ALLOWANCE();
            foreach (DataRow row in dic_allowance.GetList().Rows)
            {
                BandedGridColumn column2 = new BandedGridColumn
                {
                    FieldName = row["AllowanceCode"].ToString(),
                    Caption = row["AllowanceName"].ToString().Remove(1).ToUpper() + row["AllowanceName"].ToString().Remove(0, 1).ToLower(),
                    ColumnEdit = this.repCalculator,
                    Name = "colAllowance" + row["AllowanceCode"].ToString()
                };
                column2.AppearanceHeader.Options.UseForeColor = true;
                column2.AppearanceHeader.ForeColor = Color.Brown;
                column2.AppearanceCell.Options.UseBackColor = true;
                column2.AppearanceCell.BackColor = Color.Ivory;
                column2.OptionsColumn.ReadOnly = true;
                column2.SummaryItem.DisplayFormat = "{0:##,##0}";
                column2.SummaryItem.SummaryType = SummaryItemType.Sum;
                column2.Visible = true;
                column2.Width = 0x4c;
                this.bandAllowance.Columns.Add(column2);
                GridSummaryItem item = new GridGroupSummaryItem(SummaryItemType.Sum, column2.FieldName, column2, "{0:##,##0}");
                this.gbList.GroupSummary.Add(item);
                column2.Width = 0x4c;
                if (bool.Parse(row["IsShowInSalaryTableList"].ToString()))
                {
                    BandedGridColumn column3 = new BandedGridColumn
                    {
                        FieldName = "Tax" + row["AllowanceCode"].ToString(),
                        Caption = row["AllowanceName"].ToString().Remove(1).ToUpper() + row["AllowanceName"].ToString().Remove(0, 1).ToLower(),
                        ColumnEdit = this.repCalculator,
                        Name = "colTaxAllowance" + row["AllowanceCode"].ToString()
                    };
                    column3.AppearanceHeader.Options.UseForeColor = true;
                    column3.AppearanceHeader.ForeColor = Color.Red;
                    column3.AppearanceCell.Options.UseBackColor = true;
                    column3.AppearanceCell.BackColor = Color.Ivory;
                    column3.OptionsColumn.ReadOnly = true;
                    column3.SummaryItem.DisplayFormat = "{0:##,##0}";
                    column3.SummaryItem.SummaryType = SummaryItemType.Sum;
                    column3.Visible = true;
                    column3.Width = 0x4c;
                    this.bandTaxAllowance.Columns.Add(column3);
                    GridSummaryItem item2 = new GridGroupSummaryItem(SummaryItemType.Sum, column3.FieldName, column3, "{0:##,##0}");
                    this.gbList.GroupSummary.Add(item2);
                    column3.Width = 0x4c;
                }
            }
            this.colEmployeeCode.Width = 0x41;
            this.colFirstName.Width = 0x79;
            this.colLastName.Width = 0x38;
            this.colCoefficientSalary.Width = 0x36;
            this.colBasicSalary.Width = 0x4c;
            this.colInsuranceSalary.Width = 0x4c;
            this.colAllowanceInsurance.Width = 0x4c;
            this.colAllowance.Width = 0x40;
            this.colTotalSalary.Width = 0x4c;
            this.colTaxYourSelfMoney.Width = 0x4b;
            this.colNumberDepend.Width = 0x42;
            this.colDependMoney.Width = 0x4d;
            this.colTaxOvertime150Money.Width = 0x4b;
            this.colTaxOvertime200Money.Width = 0x4b;
            this.colTaxOvertime300Money.Width = 0x4b;
            this.colTaxOvertime195Money.Width = 0x4b;
            this.colTaxOvertime260Money.Width = 0x4b;
            this.colTaxOvertime390Money.Width = 0x4b;
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            MenuButton button2 = new MenuButton();
            ItemCommand command30 = new ItemCommand();
            ItemCommand command31 = new ItemCommand();
            ItemCommand command32 = new ItemCommand();
            ItemCommand command33 = new ItemCommand();
            ItemCommand command34 = new ItemCommand();
            ItemCommand command35 = new ItemCommand();
            ItemCommand command36 = new ItemCommand();
            ItemCommand command37 = new ItemCommand();
            ItemCommand command38 = new ItemCommand();
            ItemCommand command39 = new ItemCommand();
            ItemCommand command40 = new ItemCommand();
            ItemCommand command41 = new ItemCommand();
            ItemCommand command42 = new ItemCommand();
            ItemCommand command43 = new ItemCommand();
            ItemCommand command44 = new ItemCommand();
            ItemCommand command45 = new ItemCommand();
            ItemCommand command46 = new ItemCommand();
            ItemCommand command47 = new ItemCommand();
            ItemCommand command48 = new ItemCommand();
            ItemCommand command49 = new ItemCommand();
            ItemCommand command50 = new ItemCommand();
            ItemCommand command51 = new ItemCommand();
            ItemCommand command52 = new ItemCommand();
            ItemCommand command53 = new ItemCommand();
            ItemCommand command54 = new ItemCommand();
            ItemCommand command55 = new ItemCommand();
            ItemCommand command56 = new ItemCommand();
            ItemCommand command57 = new ItemCommand();
            ItemCommand command58 = new ItemCommand();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucSalary));
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            this.colSalaryDebt = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colSalaryPay = new BandedGridColumn();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeMonth = new BarEditItem();
            this.repMonth = new RepositoryItemTimeEdit();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbeSalaryName = new BarEditItem();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.bbiAdd = new BarButtonItem();
            this.bbiRecal = new BarButtonItem();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiLock = new BarButtonItem();
            this.bbiOpen = new BarButtonItem();
            this.bbiFinish = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiSendMail = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.dpFooter = new DockPanel();
            this.dockPanel2_Container = new ControlContainer();
            this.xucSalaryCard1 = new xucSalaryCard();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiFormula = new BarButtonItem();
            this.bbiSalaryPay = new BarButtonItem();
            this.gcList = new GridControl();
            this.gbList = new AdvBandedGridView();
            this.gridBand2 = new GridBand();
            this.colEmployeeCode = new BandedGridColumn();
            this.colFirstName = new BandedGridColumn();
            this.colLastName = new BandedGridColumn();
            this.colBranchName = new BandedGridColumn();
            this.colDepartmentName = new BandedGridColumn();
            this.colGroupName = new BandedGridColumn();
            this.gridBand3 = new GridBand();
            this.colCoefficientSalary = new BandedGridColumn();
            this.colBasicSalary = new BandedGridColumn();
            this.colDateSalary = new BandedGridColumn();
            this.gridBand12 = new GridBand();
            this.colInsuranceSalary = new BandedGridColumn();
            this.colAllowanceInsurance = new BandedGridColumn();
            this.bandAllowance = new GridBand();
            this.colAllowance = new BandedGridColumn();
            this.colTotalSalary = new BandedGridColumn();
            this.gridBand5 = new GridBand();
            this.colStipulatedTime = new BandedGridColumn();
            this.colWorkHour = new BandedGridColumn();
            this.colLateEarlyHour = new BandedGridColumn();
            this.colMinusLateEarly = new BandedGridColumn();
            this.gridBand13 = new GridBand();
            this.colRealDay = new BandedGridColumn();
            this.colRegulationDay = new BandedGridColumn();
            this.colFurloughDay = new BandedGridColumn();
            this.colCompensationDay = new BandedGridColumn();
            this.colAbsentL = new BandedGridColumn();
            this.colAbsentWOL = new BandedGridColumn();
            this.colStipulatedDay = new BandedGridColumn();
            this.colWorkTotal = new BandedGridColumn();
            this.colMinusMoney = new BandedGridColumn();
            this.bandSalaryOvertime = new GridBand();
            this.colSalaryHour = new BandedGridColumn();
            this.colOvertime150 = new BandedGridColumn();
            this.colOvertime200 = new BandedGridColumn();
            this.colOvertime300 = new BandedGridColumn();
            this.colOvertime195 = new BandedGridColumn();
            this.colOvertime260 = new BandedGridColumn();
            this.colOvertime390 = new BandedGridColumn();
            this.colOvertimeTotal1 = new BandedGridColumn();
            this.colSalaryOvertime = new BandedGridColumn();
            this.gridBand4 = new GridBand();
            this.colAssignment = new BandedGridColumn();
            this.colAssignmentPay = new BandedGridColumn();
            this.colAssignmentDebt = new BandedGridColumn();
            this.gridBand6 = new GridBand();
            this.colWorkSalary = new BandedGridColumn();
            this.gridBand7 = new GridBand();
            this.colSocialInsurance = new BandedGridColumn();
            this.colHealthInsurance = new BandedGridColumn();
            this.colUnemploymentInsurance = new BandedGridColumn();
            this.colInsurance = new BandedGridColumn();
            this.gridBand8 = new GridBand();
            this.colSocialInsurance1 = new BandedGridColumn();
            this.colHealthInsurance1 = new BandedGridColumn();
            this.colUnemploymentInsurance1 = new BandedGridColumn();
            this.colInsurance1 = new BandedGridColumn();
            this.colUnion1 = new BandedGridColumn();
            this.gridBand9 = new GridBand();
            this.colSalaryPlusBefore = new BandedGridColumn();
            this.colSalaryMinusBefore = new BandedGridColumn();
            this.colWorkSalary1 = new BandedGridColumn();
            this.colIncomeTax = new BandedGridColumn();
            this.bandTaxAllowance = new GridBand();
            this.colTaxYourSelfMoney = new BandedGridColumn();
            this.colNumberDepend = new BandedGridColumn();
            this.colDependMoney = new BandedGridColumn();
            this.colTaxOvertime150Money = new BandedGridColumn();
            this.colTaxOvertime200Money = new BandedGridColumn();
            this.colTaxOvertime300Money = new BandedGridColumn();
            this.colTaxOvertime195Money = new BandedGridColumn();
            this.colTaxOvertime260Money = new BandedGridColumn();
            this.colTaxOvertime390Money = new BandedGridColumn();
            this.gridBand10 = new GridBand();
            this.colIncomeTaxRemain = new BandedGridColumn();
            this.colIncomeTaxMoney = new BandedGridColumn();
            this.colRemainSalary = new BandedGridColumn();
            this.gridBand11 = new GridBand();
            this.colUnion = new BandedGridColumn();
            this.colAdvance = new BandedGridColumn();
            this.colSalaryPlus = new BandedGridColumn();
            this.colSalaryMinus = new BandedGridColumn();
            this.gridBand1 = new GridBand();
            this.colSalary = new BandedGridColumn();
            this.colClockingError = new BandedGridColumn();
            this.colClockingErrorBegin = new BandedGridColumn();
            this.colClockingErrorEnd = new BandedGridColumn();
            this.panelControl1 = new PanelControl();
            this.flowLayoutPanel3 = new FlowLayoutPanel();
            this.xucExpandCollapseButton1 = new xucExpandCollapseButton();
            this.lbGroupName = new LabelControl();
            this.lbDepartmentName = new LabelControl();
            this.flowLayoutPanel2 = new FlowLayoutPanel();
            this.lbBranchName = new LabelControl();
            this.lbCompanyName = new LabelControl();
            this.flowLayoutPanel1 = new FlowLayoutPanel();
            this.simpleButton1 = new SimpleButton();
            this.lbSalaryName = new LabelControl();
            this.lbMessage1 = new LabelControl();
            this.ptLock = new PictureBox();
            this.ptFinish = new PictureBox();
            this.lbMessage = new LabelControl();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.popupMenu1 = new PopupMenu(this.components);
            this.repCalculator.BeginInit();
            this.barManager1.BeginInit();
            this.repMonth.BeginInit();
            this.repYear.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.dpFooter.SuspendLayout();
            this.dockPanel2_Container.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.panelControl1.BeginInit();
            this.panelControl1.SuspendLayout();
            this.flowLayoutPanel3.SuspendLayout();
            this.flowLayoutPanel2.SuspendLayout();
            this.flowLayoutPanel1.SuspendLayout();
            ((ISupportInitialize)this.ptLock).BeginInit();
            ((ISupportInitialize)this.ptFinish).BeginInit();
            this.popupMenu1.BeginInit();
            base.SuspendLayout();
            this.colSalaryDebt.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryDebt.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryDebt.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryDebt.Caption = "C\x00f2n nợ lại";
            this.colSalaryDebt.ColumnEdit = this.repCalculator;
            this.colSalaryDebt.FieldName = "SalaryDebt";
            this.colSalaryDebt.Name = "colSalaryDebt";
            this.colSalaryDebt.OptionsColumn.ReadOnly = true;
            this.colSalaryDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryDebt.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.EditFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colSalaryPay.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryPay.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPay.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryPay.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colSalaryPay.ColumnEdit = this.repCalculator;
            this.colSalaryPay.FieldName = "SalaryPay";
            this.colSalaryPay.Name = "colSalaryPay";
            this.colSalaryPay.OptionsColumn.ReadOnly = true;
            this.colSalaryPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPay.Visible = true;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiAdd, this.bbiPrint, this.bbiReload, this.bbiLock, this.bbiFormula, this.bbiFinish, this.bbiClose, this.bbeMonth, this.bbeYear, this.bbeSalaryName, this.bbiExport, this.bbiOpen, this.bbiSendMail, this.bbiRecal, this.bbiSalaryPay });
            this.barManager1.MaxItemId = 0x16;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repMonth, this.repYear, this.repositoryItemComboBox1 });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeMonth, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeSalaryName, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAdd, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiRecal, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiLock, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiOpen, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFinish, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiSendMail, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeMonth.Caption = "Th\x00e1ng:";
            this.bbeMonth.Edit = this.repMonth;
            this.bbeMonth.Id = 13;
            this.bbeMonth.Name = "bbeMonth";
            this.repMonth.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Name = "repMonth";
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbeSalaryName.Caption = "T\x00ean Bảng Lương:";
            this.bbeSalaryName.Edit = this.repositoryItemComboBox1;
            this.bbeSalaryName.Id = 0x10;
            this.bbeSalaryName.Name = "bbeSalaryName";
            this.bbeSalaryName.Width = 130;
            this.repositoryItemComboBox1.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemComboBox1.Appearance.Options.UseFont = true;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo, "", -1, true, false, false, ImageLocation.MiddleCenter, null, new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repositoryItemComboBox1.ReadOnly = true;
            this.bbiAdd.Caption = "Tạo";
            this.bbiAdd.Id = 4;
            this.bbiAdd.ImageIndex = 6;
            this.bbiAdd.Name = "bbiAdd";
            this.bbiAdd.ItemClick += new ItemClickEventHandler(this.bbiAdd_ItemClick);
            this.bbiRecal.Caption = "T\x00ednh Lại";
            this.bbiRecal.Id = 20;
            this.bbiRecal.ImageIndex = 0x41;
            this.bbiRecal.Name = "bbiRecal";
            this.bbiRecal.ItemClick += new ItemClickEventHandler(this.bbiRecal_ItemClick);
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.Name = "bbiExport";
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiLock.Caption = "Kh\x00f3a Sổ";
            this.bbiLock.Id = 9;
            this.bbiLock.ImageIndex = 12;
            this.bbiLock.Name = "bbiLock";
            this.bbiLock.ItemClick += new ItemClickEventHandler(this.bbiLock_ItemClick);
            this.bbiOpen.Caption = "Mở Sổ";
            this.bbiOpen.Id = 0x12;
            this.bbiOpen.ImageIndex = 0x21;
            this.bbiOpen.Name = "bbiOpen";
            this.bbiOpen.ItemClick += new ItemClickEventHandler(this.bbiOpen_ItemClick);
            this.bbiFinish.Caption = "Ho\x00e0n Th\x00e0nh";
            this.bbiFinish.Id = 11;
            this.bbiFinish.ImageIndex = 0x1f;
            this.bbiFinish.Name = "bbiFinish";
            this.bbiFinish.ItemClick += new ItemClickEventHandler(this.bbiFinish_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.Name = "bbiReload";
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiSendMail.Caption = "Gửi Mail";
            this.bbiSendMail.Id = 0x13;
            this.bbiSendMail.ImageIndex = 70;
            this.bbiSendMail.Name = "bbiSendMail";
            this.bbiSendMail.ItemClick += new ItemClickEventHandler(this.bbiSendMail_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.RootPanels.AddRange(new DockPanel[] { this.dpFooter });
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x261);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("3d13ddb1-9f4f-497f-aa1b-5f5b4563a796");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(280, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 1;
            this.dockPanel1.Size = new Size(280, 0x261);
            this.dockPanel1.Text = "Ph\x00f2ng Ban V\x00e0 Tổ Nh\x00f3m";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x1d);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x112, 0x241);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x112, 0x241);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 0;
            this.xucOrganization1.Title = "";
            this.dpFooter.Controls.Add(this.dockPanel2_Container);
            this.dpFooter.Dock = DockingStyle.Bottom;
            this.dpFooter.FloatVertical = true;
            this.dpFooter.ID = new Guid("58505943-c63f-476d-94cd-05c6d8e6e68c");
            this.dpFooter.Location = new Point(0x13, 0x1af);
            this.dpFooter.Name = "dpFooter";
            this.dpFooter.OriginalSize = new Size(200, 0xcc);
            this.dpFooter.Size = new Size(0x41e, 0xcc);
            this.dpFooter.Text = "PHIẾU LƯƠNG NH\x00c2N VI\x00caN";
            this.dpFooter.VisibilityChanged += new VisibilityChangedEventHandler(this.dpFooter_VisibilityChanged);
            this.dockPanel2_Container.Controls.Add(this.xucSalaryCard1);
            this.dockPanel2_Container.Location = new Point(3, 0x19);
            this.dockPanel2_Container.Name = "dockPanel2_Container";
            this.dockPanel2_Container.Size = new Size(0x418, 0xb0);
            this.dockPanel2_Container.TabIndex = 0;
            this.xucSalaryCard1.Dock = DockStyle.Fill;
            this.xucSalaryCard1.IsClose = CloseOrNew.None;
            this.xucSalaryCard1.Location = new Point(0, 0);
            this.xucSalaryCard1.Name = "xucSalaryCard1";
            this.xucSalaryCard1.NotSave = false;
            command30.Caption = "";
            command30.Enable = false;
            command30.Visibility = BarItemVisibility.Never;
            button2.Add = command30;
            command31.Caption = "";
            command31.Enable = false;
            command31.Visibility = BarItemVisibility.Never;
            button2.Cancel = command31;
            command32.Caption = "";
            command32.Enable = false;
            command32.Visibility = BarItemVisibility.Never;
            button2.Change = command32;
            command33.Caption = "";
            command33.Enable = false;
            command33.Visibility = BarItemVisibility.Never;
            button2.Close = command33;
            command34.Caption = "";
            command34.Enable = false;
            command34.Visibility = BarItemVisibility.Never;
            button2.Custom = command34;
            command35.Caption = "";
            command35.Enable = false;
            command35.Visibility = BarItemVisibility.Never;
            button2.Delete = command35;
            command36.Caption = "";
            command36.Enable = false;
            command36.Visibility = BarItemVisibility.Never;
            button2.Export = command36;
            command37.Caption = "";
            command37.Enable = false;
            command37.Visibility = BarItemVisibility.Never;
            button2.Filter = command37;
            command38.Caption = "";
            command38.Enable = false;
            command38.Visibility = BarItemVisibility.Never;
            button2.FilterCustomer = command38;
            command39.Caption = "";
            command39.Enable = false;
            command39.Visibility = BarItemVisibility.Never;
            button2.FilterStock = command39;
            command40.Caption = "";
            command40.Enable = false;
            command40.Visibility = BarItemVisibility.Never;
            button2.Find = command40;
            button2.GClose = false;
            button2.GCommand = false;
            button2.GExport = false;
            command41.Caption = "";
            command41.Enable = false;
            command41.Visibility = BarItemVisibility.Never;
            button2.Go = command41;
            button2.GOption = false;
            button2.GPrint = false;
            button2.GRecords = false;
            button2.GSearchBar = false;
            button2.GSettings = false;
            button2.GVaildation = false;
            command42.Caption = "";
            command42.Enable = false;
            command42.Visibility = BarItemVisibility.Never;
            button2.Import = command42;
            command43.Caption = "";
            command43.Enable = false;
            command43.Visibility = BarItemVisibility.Never;
            button2.Next = command43;
            command44.Caption = "";
            command44.Enable = false;
            command44.Visibility = BarItemVisibility.Never;
            button2.PageSetup = command44;
            button2.PHome = false;
            command45.Caption = "";
            command45.Enable = false;
            command45.Visibility = BarItemVisibility.Never;
            button2.Previous = command45;
            command46.Caption = "";
            command46.Enable = false;
            command46.Visibility = BarItemVisibility.Never;
            button2.Print = command46;
            command47.Caption = "";
            command47.Enable = false;
            command47.Visibility = BarItemVisibility.Never;
            button2.PrintPreview = command47;
            button2.PTool = false;
            command48.Caption = "";
            command48.Enable = false;
            command48.Visibility = BarItemVisibility.Never;
            button2.Redo = command48;
            command49.Caption = "";
            command49.Enable = false;
            command49.Visibility = BarItemVisibility.Never;
            button2.Refresh = command49;
            command50.Caption = "";
            command50.Enable = false;
            command50.Visibility = BarItemVisibility.Never;
            button2.Save = command50;
            command51.Caption = "";
            command51.Enable = false;
            command51.Visibility = BarItemVisibility.Never;
            button2.SaveAndClose = command51;
            command52.Caption = "";
            command52.Enable = false;
            command52.Visibility = BarItemVisibility.Never;
            button2.SaveAndNew = command52;
            command53.Caption = "";
            command53.Enable = false;
            command53.Visibility = BarItemVisibility.Never;
            button2.Search = command53;
            command54.Caption = "";
            command54.Enable = false;
            command54.Visibility = BarItemVisibility.Never;
            button2.SearchText = command54;
            command55.Caption = "";
            command55.Enable = false;
            command55.Visibility = BarItemVisibility.Never;
            button2.Task = command55;
            command56.Caption = "";
            command56.Enable = false;
            command56.Visibility = BarItemVisibility.Never;
            button2.Undo = command56;
            command57.Caption = "";
            command57.Enable = false;
            command57.Visibility = BarItemVisibility.Never;
            button2.Vaildate = command57;
            command58.Caption = "";
            command58.Enable = false;
            command58.Visibility = BarItemVisibility.Never;
            button2.View = command58;
            this.xucSalaryCard1.RibbonBar = button2;
            this.xucSalaryCard1.Size = new Size(0x418, 0xb0);
            this.xucSalaryCard1.Status = Actions.None;
            this.xucSalaryCard1.TabIndex = 0;
            this.xucSalaryCard1.Title = "";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer)manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.imageCollection2.Images.SetKeyName(70, "send.png");
            this.bbiFormula.Caption = "Thiết Lập C\x00f4ng Thức";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.bbiSalaryPay.Caption = "Thanh To\x00e1n Lương";
            this.bbiSalaryPay.Id = 0x15;
            this.bbiSalaryPay.Name = "bbiSalaryPay";
            this.bbiSalaryPay.ItemClick += new ItemClickEventHandler(this.bbiSalaryPay_ItemClick);
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x49);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x41e, 0x166);
            this.gcList.TabIndex = 5;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gcList.Click += new EventHandler(this.gcList_Click);
            this.gbList.Appearance.BandPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand2, this.gridBand3, this.gridBand12, this.bandAllowance, this.gridBand5, this.gridBand13, this.bandSalaryOvertime, this.gridBand4, this.gridBand6, this.gridBand7, this.gridBand8, this.gridBand9, this.bandTaxAllowance, this.gridBand10, this.gridBand11, this.gridBand1 });
            this.gbList.ColumnPanelRowHeight = 0x30;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colEmployeeCode, this.colFirstName, this.colLastName, this.colBranchName, this.colDepartmentName, this.colGroupName, this.colCoefficientSalary, this.colBasicSalary, this.colInsuranceSalary, this.colDateSalary, this.colAllowanceInsurance, this.colAllowance, this.colTotalSalary, this.colSalaryHour, this.colOvertime150, this.colOvertime200, 
                this.colOvertime300, this.colOvertime195, this.colOvertime260, this.colOvertime390, this.colOvertimeTotal1, this.colSalaryOvertime, this.colAssignment, this.colAssignmentPay, this.colAssignmentDebt, this.colStipulatedDay, this.colStipulatedTime, this.colWorkHour, this.colLateEarlyHour, this.colMinusLateEarly, this.colMinusMoney, this.colWorkTotal, 
                this.colRealDay, this.colRegulationDay, this.colFurloughDay, this.colCompensationDay, this.colAbsentL, this.colAbsentWOL, this.colClockingError, this.colClockingErrorBegin, this.colClockingErrorEnd, this.colWorkSalary, this.colSocialInsurance, this.colHealthInsurance, this.colUnemploymentInsurance, this.colInsurance, this.colSocialInsurance1, this.colHealthInsurance1, 
                this.colUnemploymentInsurance1, this.colInsurance1, this.colSalaryPlusBefore, this.colSalaryMinusBefore, this.colWorkSalary1, this.colIncomeTax, this.colTaxYourSelfMoney, this.colNumberDepend, this.colDependMoney, this.colTaxOvertime150Money, this.colTaxOvertime200Money, this.colTaxOvertime300Money, this.colTaxOvertime195Money, this.colTaxOvertime260Money, this.colTaxOvertime390Money, this.colIncomeTaxRemain, 
                this.colIncomeTaxMoney, this.colRemainSalary, this.colAdvance, this.colUnion, this.colUnion1, this.colSalaryPlus, this.colSalaryMinus, this.colSalary, this.colSalaryPay, this.colSalaryDebt
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colSalaryDebt;
            condition.Condition = FormatConditionEnum.Greater;
            condition.Value1 = 0;
            condition2.Appearance.ForeColor = Color.Red;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colSalaryPay;
            condition2.Condition = FormatConditionEnum.Equal;
            condition2.Value1 = "0";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.GroupSummary.AddRange(new GridSummaryItem[] { 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", null, " - Tổng thực l\x00e3nh: {0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "CoefficientSalary", this.colCoefficientSalary, "{0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "BasicSalary", this.colBasicSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "InsuranceSalary", this.colInsuranceSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "AllowanceInsurance", this.colAllowanceInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Allowance", this.colAllowance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "TotalSalary", this.colTotalSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "StipulatedTime", this.colStipulatedTime, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkHour", this.colWorkHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "LateEarlyHour", this.colLateEarlyHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusLateEarly", this.colMinusLateEarly, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusMoney", this.colMinusMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkSalary", this.colWorkSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SocialInsurance", this.colSocialInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "HealthInsurance", this.colHealthInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "UnemploymentInsurance", this.colUnemploymentInsurance, "{0:##,##0}"), 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Insurance", this.colInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Union", this.colUnion, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTax", this.colIncomeTax, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "NumberDepend", this.colNumberDepend, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "DependMoney", this.colDependMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxRemain", this.colIncomeTaxRemain, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxMoney", this.colIncomeTaxMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "RemainSalary", this.colRemainSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Advance", this.colAdvance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Assignment", this.colAssignment, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPlus", this.colSalaryPlus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryMinus", this.colSalaryMinus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", this.colSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPay", this.colSalaryPay, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryDebt", this.colSalaryDebt, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryHour", this.colSalaryHour, "{0:##,##0}"), 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime150", this.colOvertime150, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime200", this.colOvertime200, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime300", this.colOvertime300, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime195", this.colOvertime195, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime260", this.colOvertime260, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Overtime390", this.colOvertime390, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "OvertimeTotal1", this.colOvertimeTotal1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryOvertime", this.colSalaryOvertime, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "AssignmentPay", this.colAssignmentPay, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "AssignmentDebt", this.colAssignmentDebt, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SocialInsurance1", this.colSocialInsurance1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "HealthInsurance1", this.colHealthInsurance1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "UnemploymentInsurance1", this.colUnemploymentInsurance1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Insurance1", this.colInsurance1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Union1", this.colUnion1, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPlusBefore", this.colSalaryPlusBefore, "{0:##,##0}"), 
                new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryMinusBefore", this.colSalaryMinusBefore, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkSalary1", this.colWorkSalary1, "{0:##,##0}")
             });
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsPrint.AutoWidth = false;
            this.gbList.OptionsPrint.ExpandAllDetails = true;
            this.gbList.OptionsPrint.PrintPreview = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.gridBand2.Columns.Add(this.colEmployeeCode);
            this.gridBand2.Columns.Add(this.colFirstName);
            this.gridBand2.Columns.Add(this.colLastName);
            this.gridBand2.Columns.Add(this.colBranchName);
            this.gridBand2.Columns.Add(this.colDepartmentName);
            this.gridBand2.Columns.Add(this.colGroupName);
            this.gridBand2.Fixed = FixedStyle.Left;
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 0xda;
            this.colEmployeeCode.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colEmployeeCode.AppearanceHeader.Options.UseFont = true;
            this.colEmployeeCode.Caption = "M\x00e3 NV";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.OptionsColumn.AllowEdit = false;
            this.colEmployeeCode.OptionsColumn.ReadOnly = true;
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.Width = 0x43;
            this.colFirstName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colFirstName.AppearanceHeader.Options.UseFont = true;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.OptionsColumn.AllowEdit = false;
            this.colFirstName.OptionsColumn.ReadOnly = true;
            this.colFirstName.Visible = true;
            this.colFirstName.Width = 0x60;
            this.colLastName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colLastName.AppearanceHeader.Options.UseFont = true;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.OptionsColumn.AllowEdit = false;
            this.colLastName.OptionsColumn.ReadOnly = true;
            this.colLastName.Visible = true;
            this.colLastName.Width = 0x37;
            this.colBranchName.Caption = "Chi nh\x00e1nh";
            this.colBranchName.FieldName = "BranchName";
            this.colBranchName.Name = "colBranchName";
            this.colBranchName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colBranchName.OptionsColumn.ReadOnly = true;
            this.colDepartmentName.Caption = "Ph\x00f2ng ban";
            this.colDepartmentName.FieldName = "DepartmentName";
            this.colDepartmentName.Name = "colDepartmentName";
            this.colDepartmentName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colDepartmentName.OptionsColumn.ReadOnly = true;
            this.colGroupName.Caption = "Tổ nh\x00f3m";
            this.colGroupName.FieldName = "GroupName";
            this.colGroupName.Name = "colGroupName";
            this.colGroupName.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colGroupName.OptionsColumn.ReadOnly = true;
            this.gridBand3.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand3.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand3.Caption = "Lương căn bản";
            this.gridBand3.Columns.Add(this.colCoefficientSalary);
            this.gridBand3.Columns.Add(this.colBasicSalary);
            this.gridBand3.Columns.Add(this.colDateSalary);
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 130;
            this.colCoefficientSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colCoefficientSalary.AppearanceCell.Options.UseBackColor = true;
            this.colCoefficientSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colCoefficientSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colCoefficientSalary.Caption = "Hệ số lương";
            this.colCoefficientSalary.ColumnEdit = this.repCalculator;
            this.colCoefficientSalary.FieldName = "CoefficientSalary";
            this.colCoefficientSalary.Name = "colCoefficientSalary";
            this.colCoefficientSalary.OptionsColumn.ReadOnly = true;
            this.colCoefficientSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colCoefficientSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colCoefficientSalary.Visible = true;
            this.colCoefficientSalary.Width = 0x36;
            this.colBasicSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colBasicSalary.AppearanceCell.Options.UseBackColor = true;
            this.colBasicSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colBasicSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colBasicSalary.Caption = "Lương căn bản";
            this.colBasicSalary.ColumnEdit = this.repCalculator;
            this.colBasicSalary.FieldName = "BasicSalary";
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.OptionsColumn.ReadOnly = true;
            this.colBasicSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colBasicSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colBasicSalary.Visible = true;
            this.colBasicSalary.Width = 0x4c;
            this.colDateSalary.AppearanceCell.BackColor = Color.Honeydew;
            this.colDateSalary.AppearanceCell.Options.UseBackColor = true;
            this.colDateSalary.AppearanceHeader.ForeColor = Color.DarkCyan;
            this.colDateSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colDateSalary.Caption = "Ng\x00e0y c\x00f3 hiệu lực";
            this.colDateSalary.FieldName = "DateSalary";
            this.colDateSalary.Name = "colDateSalary";
            this.gridBand12.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand12.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand12.Caption = "Lương đ\x00f3ng bảo hiểm";
            this.gridBand12.Columns.Add(this.colInsuranceSalary);
            this.gridBand12.Columns.Add(this.colAllowanceInsurance);
            this.gridBand12.Name = "gridBand12";
            this.gridBand12.Width = 150;
            this.colInsuranceSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colInsuranceSalary.AppearanceCell.Options.UseBackColor = true;
            this.colInsuranceSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsuranceSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colInsuranceSalary.Caption = "LCB đ\x00f3ng BH";
            this.colInsuranceSalary.ColumnEdit = this.repCalculator;
            this.colInsuranceSalary.FieldName = "InsuranceSalary";
            this.colInsuranceSalary.Name = "colInsuranceSalary";
            this.colInsuranceSalary.OptionsColumn.ReadOnly = true;
            this.colInsuranceSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsuranceSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsuranceSalary.Visible = true;
            this.colAllowanceInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colAllowanceInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowanceInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colAllowanceInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowanceInsurance.Caption = "Phụ cấp đ\x00f3ng BH";
            this.colAllowanceInsurance.ColumnEdit = this.repCalculator;
            this.colAllowanceInsurance.FieldName = "AllowanceInsurance";
            this.colAllowanceInsurance.Name = "colAllowanceInsurance";
            this.colAllowanceInsurance.OptionsColumn.ReadOnly = true;
            this.colAllowanceInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowanceInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowanceInsurance.Visible = true;
            this.bandAllowance.AppearanceHeader.ForeColor = Color.Red;
            this.bandAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.bandAllowance.Caption = "Phụ cấp && Tổng lương";
            this.bandAllowance.Columns.Add(this.colAllowance);
            this.bandAllowance.Columns.Add(this.colTotalSalary);
            this.bandAllowance.Name = "bandAllowance";
            this.bandAllowance.Width = 140;
            this.colAllowance.AppearanceCell.BackColor = Color.SeaShell;
            this.colAllowance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowance.AppearanceHeader.ForeColor = Color.Red;
            this.colAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowance.Caption = "Tổng phụ cấp lương";
            this.colAllowance.ColumnEdit = this.repCalculator;
            this.colAllowance.FieldName = "Allowance";
            this.colAllowance.Name = "colAllowance";
            this.colAllowance.OptionsColumn.ReadOnly = true;
            this.colAllowance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowance.Visible = true;
            this.colAllowance.Width = 0x40;
            this.colTotalSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colTotalSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colTotalSalary.AppearanceCell.Options.UseBackColor = true;
            this.colTotalSalary.AppearanceCell.Options.UseFont = true;
            this.colTotalSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colTotalSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colTotalSalary.Caption = "Tổng lương";
            this.colTotalSalary.ColumnEdit = this.repCalculator;
            this.colTotalSalary.FieldName = "TotalSalary";
            this.colTotalSalary.Name = "colTotalSalary";
            this.colTotalSalary.OptionsColumn.ReadOnly = true;
            this.colTotalSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotalSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotalSalary.Visible = true;
            this.colTotalSalary.Width = 0x4c;
            this.gridBand5.AppearanceHeader.ForeColor = Color.Purple;
            this.gridBand5.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand5.Caption = "Giờ l\x00e0m việc";
            this.gridBand5.Columns.Add(this.colStipulatedTime);
            this.gridBand5.Columns.Add(this.colWorkHour);
            this.gridBand5.Columns.Add(this.colLateEarlyHour);
            this.gridBand5.Columns.Add(this.colMinusLateEarly);
            this.gridBand5.Name = "gridBand5";
            this.gridBand5.Width = 0xd5;
            this.colStipulatedTime.AppearanceCell.BackColor = Color.GhostWhite;
            this.colStipulatedTime.AppearanceCell.Options.UseBackColor = true;
            this.colStipulatedTime.AppearanceHeader.ForeColor = Color.Purple;
            this.colStipulatedTime.AppearanceHeader.Options.UseForeColor = true;
            this.colStipulatedTime.Caption = "Số giờ quy định";
            this.colStipulatedTime.ColumnEdit = this.repCalculator;
            this.colStipulatedTime.FieldName = "StipulatedTime";
            this.colStipulatedTime.Name = "colStipulatedTime";
            this.colStipulatedTime.OptionsColumn.ReadOnly = true;
            this.colStipulatedTime.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colStipulatedTime.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colStipulatedTime.Visible = true;
            this.colStipulatedTime.Width = 0x33;
            this.colWorkHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colWorkHour.AppearanceCell.Options.UseBackColor = true;
            this.colWorkHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colWorkHour.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkHour.Caption = "Số giờ c\x00f4ng";
            this.colWorkHour.ColumnEdit = this.repCalculator;
            this.colWorkHour.FieldName = "WorkHour";
            this.colWorkHour.Name = "colWorkHour";
            this.colWorkHour.OptionsColumn.ReadOnly = true;
            this.colWorkHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkHour.Visible = true;
            this.colWorkHour.Width = 0x2e;
            this.colLateEarlyHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colLateEarlyHour.AppearanceCell.Options.UseBackColor = true;
            this.colLateEarlyHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colLateEarlyHour.AppearanceHeader.Options.UseForeColor = true;
            this.colLateEarlyHour.Caption = "Số giờ đi trể về sớm";
            this.colLateEarlyHour.ColumnEdit = this.repCalculator;
            this.colLateEarlyHour.FieldName = "LateEarlyHour";
            this.colLateEarlyHour.Name = "colLateEarlyHour";
            this.colLateEarlyHour.OptionsColumn.ReadOnly = true;
            this.colLateEarlyHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colLateEarlyHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colLateEarlyHour.Visible = true;
            this.colLateEarlyHour.Width = 0x3a;
            this.colMinusLateEarly.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusLateEarly.AppearanceCell.Options.UseBackColor = true;
            this.colMinusLateEarly.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusLateEarly.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusLateEarly.Caption = "Trừ tiền đi trể về sớm";
            this.colMinusLateEarly.ColumnEdit = this.repCalculator;
            this.colMinusLateEarly.FieldName = "MinusLateEarly";
            this.colMinusLateEarly.Name = "colMinusLateEarly";
            this.colMinusLateEarly.OptionsColumn.ReadOnly = true;
            this.colMinusLateEarly.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusLateEarly.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusLateEarly.Visible = true;
            this.colMinusLateEarly.Width = 0x3a;
            this.gridBand13.AppearanceHeader.ForeColor = Color.Purple;
            this.gridBand13.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand13.Caption = "Ng\x00e0y l\x00e0m việc";
            this.gridBand13.Columns.Add(this.colRealDay);
            this.gridBand13.Columns.Add(this.colRegulationDay);
            this.gridBand13.Columns.Add(this.colFurloughDay);
            this.gridBand13.Columns.Add(this.colCompensationDay);
            this.gridBand13.Columns.Add(this.colAbsentL);
            this.gridBand13.Columns.Add(this.colAbsentWOL);
            this.gridBand13.Columns.Add(this.colStipulatedDay);
            this.gridBand13.Columns.Add(this.colWorkTotal);
            this.gridBand13.Columns.Add(this.colMinusMoney);
            this.gridBand13.Name = "gridBand13";
            this.gridBand13.Width = 0xdd;
            this.colRealDay.AppearanceCell.BackColor = Color.GhostWhite;
            this.colRealDay.AppearanceCell.Options.UseBackColor = true;
            this.colRealDay.AppearanceHeader.ForeColor = Color.Purple;
            this.colRealDay.AppearanceHeader.Options.UseForeColor = true;
            this.colRealDay.Caption = "NC thực tế, c\x00f4ng t\x00e1c";
            this.colRealDay.FieldName = "RealDay";
            this.colRealDay.Name = "colRealDay";
            this.colRealDay.OptionsColumn.ReadOnly = true;
            this.colRealDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colRegulationDay.AppearanceCell.BackColor = Color.GhostWhite;
            this.colRegulationDay.AppearanceCell.Options.UseBackColor = true;
            this.colRegulationDay.AppearanceHeader.ForeColor = Color.Purple;
            this.colRegulationDay.AppearanceHeader.Options.UseForeColor = true;
            this.colRegulationDay.Caption = "Nghỉ chế độ";
            this.colRegulationDay.FieldName = "RegulationDay";
            this.colRegulationDay.Name = "colRegulationDay";
            this.colRegulationDay.OptionsColumn.ReadOnly = true;
            this.colRegulationDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colFurloughDay.AppearanceCell.BackColor = Color.GhostWhite;
            this.colFurloughDay.AppearanceCell.Options.UseBackColor = true;
            this.colFurloughDay.AppearanceHeader.ForeColor = Color.Purple;
            this.colFurloughDay.AppearanceHeader.Options.UseForeColor = true;
            this.colFurloughDay.Caption = "Nghỉ ph\x00e9p năm";
            this.colFurloughDay.FieldName = "FurloughDay";
            this.colFurloughDay.Name = "colFurloughDay";
            this.colFurloughDay.OptionsColumn.ReadOnly = true;
            this.colFurloughDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colCompensationDay.AppearanceCell.BackColor = Color.GhostWhite;
            this.colCompensationDay.AppearanceCell.Options.UseBackColor = true;
            this.colCompensationDay.AppearanceHeader.ForeColor = Color.Purple;
            this.colCompensationDay.AppearanceHeader.Options.UseForeColor = true;
            this.colCompensationDay.Caption = "Nghỉ b\x00f9";
            this.colCompensationDay.FieldName = "CompensationDay";
            this.colCompensationDay.Name = "colCompensationDay";
            this.colCompensationDay.OptionsColumn.ReadOnly = true;
            this.colCompensationDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAbsentL.AppearanceCell.BackColor = Color.GhostWhite;
            this.colAbsentL.AppearanceCell.Options.UseBackColor = true;
            this.colAbsentL.AppearanceHeader.ForeColor = Color.Purple;
            this.colAbsentL.AppearanceHeader.Options.UseForeColor = true;
            this.colAbsentL.Caption = "Nghỉ c\x00f3 l\x00fd do";
            this.colAbsentL.FieldName = "AbsentL";
            this.colAbsentL.Name = "colAbsentL";
            this.colAbsentL.OptionsColumn.ReadOnly = true;
            this.colAbsentL.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAbsentWOL.AppearanceCell.BackColor = Color.GhostWhite;
            this.colAbsentWOL.AppearanceCell.Options.UseBackColor = true;
            this.colAbsentWOL.AppearanceHeader.ForeColor = Color.Purple;
            this.colAbsentWOL.AppearanceHeader.Options.UseForeColor = true;
            this.colAbsentWOL.Caption = "Nghỉ kh\x00f4ng c\x00f3 l\x00fd do";
            this.colAbsentWOL.FieldName = "AbsentWOL";
            this.colAbsentWOL.Name = "colAbsentWOL";
            this.colAbsentWOL.OptionsColumn.ReadOnly = true;
            this.colAbsentWOL.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colStipulatedDay.AppearanceCell.BackColor = Color.GhostWhite;
            this.colStipulatedDay.AppearanceCell.Options.UseBackColor = true;
            this.colStipulatedDay.AppearanceHeader.ForeColor = Color.Purple;
            this.colStipulatedDay.AppearanceHeader.Options.UseForeColor = true;
            this.colStipulatedDay.Caption = "Ng\x00e0y c\x00f4ng quy định";
            this.colStipulatedDay.ColumnEdit = this.repCalculator;
            this.colStipulatedDay.FieldName = "StipulatedDay";
            this.colStipulatedDay.Name = "colStipulatedDay";
            this.colStipulatedDay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colStipulatedDay.Visible = true;
            this.colWorkTotal.AppearanceCell.BackColor = Color.GhostWhite;
            this.colWorkTotal.AppearanceCell.Options.UseBackColor = true;
            this.colWorkTotal.AppearanceHeader.ForeColor = Color.Purple;
            this.colWorkTotal.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkTotal.Caption = "Tổng c\x00f4ng";
            this.colWorkTotal.FieldName = "WorkTotal";
            this.colWorkTotal.Name = "colWorkTotal";
            this.colWorkTotal.OptionsColumn.ReadOnly = true;
            this.colWorkTotal.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkTotal.Visible = true;
            this.colMinusMoney.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusMoney.AppearanceCell.Options.UseBackColor = true;
            this.colMinusMoney.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusMoney.Caption = "Trừ ng\x00e0y nghỉ";
            this.colMinusMoney.ColumnEdit = this.repCalculator;
            this.colMinusMoney.FieldName = "MinusMoney";
            this.colMinusMoney.Name = "colMinusMoney";
            this.colMinusMoney.OptionsColumn.ReadOnly = true;
            this.colMinusMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusMoney.Visible = true;
            this.colMinusMoney.Width = 0x47;
            this.bandSalaryOvertime.AppearanceHeader.ForeColor = Color.Red;
            this.bandSalaryOvertime.AppearanceHeader.Options.UseForeColor = true;
            this.bandSalaryOvertime.Caption = "Tăng ca";
            this.bandSalaryOvertime.Columns.Add(this.colSalaryHour);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime150);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime200);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime300);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime195);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime260);
            this.bandSalaryOvertime.Columns.Add(this.colOvertime390);
            this.bandSalaryOvertime.Columns.Add(this.colOvertimeTotal1);
            this.bandSalaryOvertime.Columns.Add(this.colSalaryOvertime);
            this.bandSalaryOvertime.Name = "bandSalaryOvertime";
            this.bandSalaryOvertime.Width = 0x2a3;
            this.colSalaryHour.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryHour.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryHour.AppearanceHeader.ForeColor = Color.Red;
            this.colSalaryHour.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryHour.Caption = "Lương giờ";
            this.colSalaryHour.ColumnEdit = this.repCalculator;
            this.colSalaryHour.FieldName = "SalaryHour";
            this.colSalaryHour.Name = "colSalaryHour";
            this.colSalaryHour.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colSalaryHour.OptionsColumn.ReadOnly = true;
            this.colSalaryHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryHour.Visible = true;
            this.colOvertime150.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime150.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime150.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime150.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime150.Caption = "TC. Ng\x00e0y thường (h)";
            this.colOvertime150.ColumnEdit = this.repCalculator;
            this.colOvertime150.FieldName = "Overtime150";
            this.colOvertime150.Name = "colOvertime150";
            this.colOvertime150.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime150.OptionsColumn.ReadOnly = true;
            this.colOvertime150.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime150.Visible = true;
            this.colOvertime200.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime200.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime200.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime200.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime200.Caption = "TC. Chủ nhật (h)";
            this.colOvertime200.ColumnEdit = this.repCalculator;
            this.colOvertime200.FieldName = "Overtime200";
            this.colOvertime200.Name = "colOvertime200";
            this.colOvertime200.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime200.OptionsColumn.ReadOnly = true;
            this.colOvertime200.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime200.Visible = true;
            this.colOvertime300.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime300.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime300.AppearanceHeader.ForeColor = Color.Blue;
            this.colOvertime300.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime300.Caption = "TC. Ng\x00e0y lễ (h)";
            this.colOvertime300.ColumnEdit = this.repCalculator;
            this.colOvertime300.FieldName = "Overtime300";
            this.colOvertime300.Name = "colOvertime300";
            this.colOvertime300.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime300.OptionsColumn.ReadOnly = true;
            this.colOvertime300.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime300.Visible = true;
            this.colOvertime195.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime195.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime195.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime195.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime195.Caption = "TCĐ. Ng\x00e0y thường (h)";
            this.colOvertime195.ColumnEdit = this.repCalculator;
            this.colOvertime195.FieldName = "Overtime195";
            this.colOvertime195.Name = "colOvertime195";
            this.colOvertime195.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime195.OptionsColumn.ReadOnly = true;
            this.colOvertime195.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime195.Visible = true;
            this.colOvertime260.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime260.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime260.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime260.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
            this.colOvertime260.ColumnEdit = this.repCalculator;
            this.colOvertime260.FieldName = "Overtime260";
            this.colOvertime260.Name = "colOvertime260";
            this.colOvertime260.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime260.OptionsColumn.ReadOnly = true;
            this.colOvertime260.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime260.Visible = true;
            this.colOvertime390.AppearanceCell.BackColor = Color.Azure;
            this.colOvertime390.AppearanceCell.Options.UseBackColor = true;
            this.colOvertime390.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertime390.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertime390.Caption = "TCĐ. Ng\x00e0y lễ (h)";
            this.colOvertime390.ColumnEdit = this.repCalculator;
            this.colOvertime390.FieldName = "Overtime390";
            this.colOvertime390.Name = "colOvertime390";
            this.colOvertime390.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertime390.OptionsColumn.ReadOnly = true;
            this.colOvertime390.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertime390.Visible = true;
            this.colOvertimeTotal1.AppearanceCell.BackColor = Color.Azure;
            this.colOvertimeTotal1.AppearanceCell.Options.UseBackColor = true;
            this.colOvertimeTotal1.AppearanceHeader.ForeColor = Color.Red;
            this.colOvertimeTotal1.AppearanceHeader.Options.UseForeColor = true;
            this.colOvertimeTotal1.Caption = "Tổng (h)";
            this.colOvertimeTotal1.ColumnEdit = this.repCalculator;
            this.colOvertimeTotal1.FieldName = "OvertimeTotal1";
            this.colOvertimeTotal1.Name = "colOvertimeTotal1";
            this.colOvertimeTotal1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colOvertimeTotal1.OptionsColumn.ReadOnly = true;
            this.colOvertimeTotal1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colOvertimeTotal1.Visible = true;
            this.colSalaryOvertime.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryOvertime.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryOvertime.AppearanceHeader.ForeColor = Color.Red;
            this.colSalaryOvertime.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryOvertime.Caption = "Tiền tăng ca";
            this.colSalaryOvertime.ColumnEdit = this.repCalculator;
            this.colSalaryOvertime.FieldName = "SalaryOvertime";
            this.colSalaryOvertime.Name = "colSalaryOvertime";
            this.colSalaryOvertime.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryOvertime.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryOvertime.Visible = true;
            this.gridBand4.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand4.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand4.Caption = "C\x00f4ng t\x00e1c ph\x00ed";
            this.gridBand4.Columns.Add(this.colAssignment);
            this.gridBand4.Columns.Add(this.colAssignmentPay);
            this.gridBand4.Columns.Add(this.colAssignmentDebt);
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 0xe1;
            this.colAssignment.AppearanceCell.BackColor = Color.Azure;
            this.colAssignment.AppearanceCell.Options.UseBackColor = true;
            this.colAssignment.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignment.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignment.Caption = "C\x00f4ng t\x00e1c ph\x00ed";
            this.colAssignment.ColumnEdit = this.repCalculator;
            this.colAssignment.FieldName = "Assignment";
            this.colAssignment.Name = "colAssignment";
            this.colAssignment.OptionsColumn.ReadOnly = true;
            this.colAssignment.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignment.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignment.Visible = true;
            this.colAssignmentPay.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentPay.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentPay.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentPay.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colAssignmentPay.ColumnEdit = this.repCalculator;
            this.colAssignmentPay.FieldName = "AssignmentPay";
            this.colAssignmentPay.Name = "colAssignmentPay";
            this.colAssignmentPay.OptionsColumn.ReadOnly = true;
            this.colAssignmentPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentPay.Visible = true;
            this.colAssignmentDebt.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentDebt.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentDebt.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentDebt.Caption = "C\x00f2n lại";
            this.colAssignmentDebt.ColumnEdit = this.repCalculator;
            this.colAssignmentDebt.FieldName = "AssignmentDebt";
            this.colAssignmentDebt.Name = "colAssignmentDebt";
            this.colAssignmentDebt.OptionsColumn.ReadOnly = true;
            this.colAssignmentDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentDebt.Visible = true;
            this.gridBand6.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand6.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand6.Caption = "Tiền lương";
            this.gridBand6.Columns.Add(this.colWorkSalary);
            this.gridBand6.Name = "gridBand6";
            this.gridBand6.Width = 0x4b;
            this.colWorkSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary.Caption = "Tiền lương";
            this.colWorkSalary.ColumnEdit = this.repCalculator;
            this.colWorkSalary.FieldName = "WorkSalary";
            this.colWorkSalary.Name = "colWorkSalary";
            this.colWorkSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary.Visible = true;
            this.gridBand7.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand7.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand7.Caption = "Bảo hiểm do người lao động đ\x00f3ng";
            this.gridBand7.Columns.Add(this.colSocialInsurance);
            this.gridBand7.Columns.Add(this.colHealthInsurance);
            this.gridBand7.Columns.Add(this.colUnemploymentInsurance);
            this.gridBand7.Columns.Add(this.colInsurance);
            this.gridBand7.Name = "gridBand7";
            this.gridBand7.Width = 300;
            this.colSocialInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance.Caption = "BHXH";
            this.colSocialInsurance.ColumnEdit = this.repCalculator;
            this.colSocialInsurance.FieldName = "SocialInsurance";
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance.Visible = true;
            this.colHealthInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance.Caption = "BHYT";
            this.colHealthInsurance.ColumnEdit = this.repCalculator;
            this.colHealthInsurance.FieldName = "HealthInsurance";
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance.Visible = true;
            this.colUnemploymentInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance.Caption = "BHTN";
            this.colUnemploymentInsurance.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance.FieldName = "UnemploymentInsurance";
            this.colUnemploymentInsurance.Name = "colUnemploymentInsurance";
            this.colUnemploymentInsurance.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance.Visible = true;
            this.colInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance.ColumnEdit = this.repCalculator;
            this.colInsurance.FieldName = "Insurance";
            this.colInsurance.Name = "colInsurance";
            this.colInsurance.OptionsColumn.ReadOnly = true;
            this.colInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance.Visible = true;
            this.gridBand8.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand8.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand8.Caption = "Bảo hiểm do người sử dụng lao động đ\x00f3ng";
            this.gridBand8.Columns.Add(this.colSocialInsurance1);
            this.gridBand8.Columns.Add(this.colHealthInsurance1);
            this.gridBand8.Columns.Add(this.colUnemploymentInsurance1);
            this.gridBand8.Columns.Add(this.colInsurance1);
            this.gridBand8.Columns.Add(this.colUnion1);
            this.gridBand8.Name = "gridBand8";
            this.gridBand8.Width = 0x177;
            this.colSocialInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance1.Caption = "BHXH";
            this.colSocialInsurance1.ColumnEdit = this.repCalculator;
            this.colSocialInsurance1.FieldName = "SocialInsurance1";
            this.colSocialInsurance1.Name = "colSocialInsurance1";
            this.colSocialInsurance1.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance1.Visible = true;
            this.colHealthInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance1.Caption = "BHYT";
            this.colHealthInsurance1.ColumnEdit = this.repCalculator;
            this.colHealthInsurance1.FieldName = "HealthInsurance1";
            this.colHealthInsurance1.Name = "colHealthInsurance1";
            this.colHealthInsurance1.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance1.Visible = true;
            this.colUnemploymentInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance1.Caption = "BHTN";
            this.colUnemploymentInsurance1.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance1.FieldName = "UnemploymentInsurance1";
            this.colUnemploymentInsurance1.Name = "colUnemploymentInsurance1";
            this.colUnemploymentInsurance1.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance1.Visible = true;
            this.colInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance1.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance1.ColumnEdit = this.repCalculator;
            this.colInsurance1.FieldName = "Insurance1";
            this.colInsurance1.Name = "colInsurance1";
            this.colInsurance1.OptionsColumn.ReadOnly = true;
            this.colInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance1.Visible = true;
            this.colUnion1.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion1.AppearanceCell.Options.UseBackColor = true;
            this.colUnion1.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion1.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion1.ColumnEdit = this.repCalculator;
            this.colUnion1.FieldName = "Union1";
            this.colUnion1.Name = "colUnion1";
            this.colUnion1.OptionsColumn.ReadOnly = true;
            this.colUnion1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion1.Visible = true;
            this.gridBand9.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand9.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand9.Caption = "Trước thuế";
            this.gridBand9.Columns.Add(this.colSalaryPlusBefore);
            this.gridBand9.Columns.Add(this.colSalaryMinusBefore);
            this.gridBand9.Columns.Add(this.colWorkSalary1);
            this.gridBand9.Columns.Add(this.colIncomeTax);
            this.gridBand9.Name = "gridBand9";
            this.gridBand9.Width = 0xe1;
            this.colSalaryPlusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlusBefore.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryPlusBefore.FieldName = "SalaryPlusBefore";
            this.colSalaryPlusBefore.Name = "colSalaryPlusBefore";
            this.colSalaryPlusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryPlusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlusBefore.Visible = true;
            this.colSalaryMinusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinusBefore.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryMinusBefore.FieldName = "SalaryMinusBefore";
            this.colSalaryMinusBefore.Name = "colSalaryMinusBefore";
            this.colSalaryMinusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryMinusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinusBefore.Visible = true;
            this.colWorkSalary1.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary1.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary1.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary1.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary1.Caption = "Tổng thu nhập";
            this.colWorkSalary1.ColumnEdit = this.repCalculator;
            this.colWorkSalary1.FieldName = "WorkSalary1";
            this.colWorkSalary1.Name = "colWorkSalary1";
            this.colWorkSalary1.OptionsColumn.ReadOnly = true;
            this.colWorkSalary1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary1.Visible = true;
            this.colIncomeTax.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTax.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTax.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTax.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTax.Caption = "Tiền chịu thuế";
            this.colIncomeTax.ColumnEdit = this.repCalculator;
            this.colIncomeTax.FieldName = "IncomeTax";
            this.colIncomeTax.Name = "colIncomeTax";
            this.colIncomeTax.OptionsColumn.ReadOnly = true;
            this.colIncomeTax.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTax.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTax.Width = 0x53;
            this.bandTaxAllowance.AppearanceHeader.ForeColor = Color.Brown;
            this.bandTaxAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.bandTaxAllowance.Caption = "Giảm trừ thuế";
            this.bandTaxAllowance.Columns.Add(this.colTaxYourSelfMoney);
            this.bandTaxAllowance.Columns.Add(this.colNumberDepend);
            this.bandTaxAllowance.Columns.Add(this.colDependMoney);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime150Money);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime200Money);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime300Money);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime195Money);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime260Money);
            this.bandTaxAllowance.Columns.Add(this.colTaxOvertime390Money);
            this.bandTaxAllowance.Name = "bandTaxAllowance";
            this.bandTaxAllowance.Width = 0x1bb;
            this.colTaxYourSelfMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colTaxYourSelfMoney.AppearanceCell.Options.UseBackColor = true;
            this.colTaxYourSelfMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxYourSelfMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxYourSelfMoney.Caption = "Bản th\x00e2n";
            this.colTaxYourSelfMoney.ColumnEdit = this.repCalculator;
            this.colTaxYourSelfMoney.FieldName = "TaxYourSelfMoney";
            this.colTaxYourSelfMoney.Name = "colTaxYourSelfMoney";
            this.colTaxYourSelfMoney.OptionsColumn.ReadOnly = true;
            this.colTaxYourSelfMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxYourSelfMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxYourSelfMoney.Visible = true;
            this.colNumberDepend.AppearanceCell.BackColor = Color.Ivory;
            this.colNumberDepend.AppearanceCell.Options.UseBackColor = true;
            this.colNumberDepend.AppearanceHeader.ForeColor = Color.Brown;
            this.colNumberDepend.AppearanceHeader.Options.UseForeColor = true;
            this.colNumberDepend.Caption = "Số người phụ thuộc";
            this.colNumberDepend.ColumnEdit = this.repCalculator;
            this.colNumberDepend.FieldName = "NumberDepend";
            this.colNumberDepend.Name = "colNumberDepend";
            this.colNumberDepend.OptionsColumn.ReadOnly = true;
            this.colNumberDepend.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colNumberDepend.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colNumberDepend.Visible = true;
            this.colNumberDepend.Width = 0x42;
            this.colDependMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colDependMoney.AppearanceCell.Options.UseBackColor = true;
            this.colDependMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colDependMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colDependMoney.Caption = "Tiền chi cho số người phụ thuộc";
            this.colDependMoney.ColumnEdit = this.repCalculator;
            this.colDependMoney.FieldName = "DependMoney";
            this.colDependMoney.Name = "colDependMoney";
            this.colDependMoney.OptionsColumn.ReadOnly = true;
            this.colDependMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colDependMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colDependMoney.Visible = true;
            this.colDependMoney.Width = 0x4d;
            this.colTaxOvertime150Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime150Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime150Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime150Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime150Money.Caption = "Giảm trừ TC. Ng\x00e0y thường";
            this.colTaxOvertime150Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime150Money.FieldName = "TaxOvertime150Money";
            this.colTaxOvertime150Money.Name = "colTaxOvertime150Money";
            this.colTaxOvertime150Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime150Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime150Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxOvertime150Money.Visible = true;
            this.colTaxOvertime200Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime200Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime200Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime200Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime200Money.Caption = "Giảm trừ TC. Ng\x00e0y chủ nhật";
            this.colTaxOvertime200Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime200Money.FieldName = "TaxOvertime200Money";
            this.colTaxOvertime200Money.Name = "colTaxOvertime200Money";
            this.colTaxOvertime200Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime200Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime200Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxOvertime200Money.Visible = true;
            this.colTaxOvertime300Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime300Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime300Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime300Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime300Money.Caption = "Giảm trừ TC. Ng\x00e0y lễ";
            this.colTaxOvertime300Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime300Money.FieldName = "TaxOvertime300Money";
            this.colTaxOvertime300Money.Name = "colTaxOvertime300Money";
            this.colTaxOvertime300Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime300Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime300Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxOvertime300Money.Visible = true;
            this.colTaxOvertime195Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime195Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime195Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime195Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime195Money.Caption = "Giảm trừ TCĐ. Ng\x00e0y thường";
            this.colTaxOvertime195Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime195Money.FieldName = "TaxOvertime195Money";
            this.colTaxOvertime195Money.Name = "colTaxOvertime195Money";
            this.colTaxOvertime195Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime195Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime195Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxOvertime260Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime260Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime260Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime260Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime260Money.Caption = "Giảm trừ TCĐ. Ng\x00e0y chủ nhật";
            this.colTaxOvertime260Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime260Money.FieldName = "TaxOvertime260Money";
            this.colTaxOvertime260Money.Name = "colTaxOvertime260Money";
            this.colTaxOvertime260Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime260Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime260Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTaxOvertime390Money.AppearanceCell.BackColor = Color.FloralWhite;
            this.colTaxOvertime390Money.AppearanceCell.Options.UseBackColor = true;
            this.colTaxOvertime390Money.AppearanceHeader.ForeColor = Color.Brown;
            this.colTaxOvertime390Money.AppearanceHeader.Options.UseForeColor = true;
            this.colTaxOvertime390Money.Caption = "Giảm trừ TCĐ. Ng\x00e0y lễ";
            this.colTaxOvertime390Money.ColumnEdit = this.repCalculator;
            this.colTaxOvertime390Money.FieldName = "TaxOvertime390Money";
            this.colTaxOvertime390Money.Name = "colTaxOvertime390Money";
            this.colTaxOvertime390Money.OptionsColumn.ReadOnly = true;
            this.colTaxOvertime390Money.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTaxOvertime390Money.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.gridBand10.AppearanceHeader.ForeColor = Color.Brown;
            this.gridBand10.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand10.Caption = "Thuế thu nhập c\x00e1 nh\x00e2n";
            this.gridBand10.Columns.Add(this.colIncomeTaxRemain);
            this.gridBand10.Columns.Add(this.colIncomeTaxMoney);
            this.gridBand10.Columns.Add(this.colRemainSalary);
            this.gridBand10.Name = "gridBand10";
            this.gridBand10.Width = 0xfb;
            this.colIncomeTaxRemain.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxRemain.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxRemain.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxRemain.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxRemain.Caption = "Số tiền c\x00f2n lại chịu thuế";
            this.colIncomeTaxRemain.ColumnEdit = this.repCalculator;
            this.colIncomeTaxRemain.FieldName = "IncomeTaxRemain";
            this.colIncomeTaxRemain.Name = "colIncomeTaxRemain";
            this.colIncomeTaxRemain.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxRemain.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxRemain.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxRemain.Visible = true;
            this.colIncomeTaxRemain.Width = 0x5d;
            this.colIncomeTaxMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxMoney.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colIncomeTaxMoney.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxMoney.AppearanceCell.Options.UseFont = true;
            this.colIncomeTaxMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxMoney.Caption = "Tiền đ\x00f3ng thuế";
            this.colIncomeTaxMoney.ColumnEdit = this.repCalculator;
            this.colIncomeTaxMoney.FieldName = "IncomeTaxMoney";
            this.colIncomeTaxMoney.Name = "colIncomeTaxMoney";
            this.colIncomeTaxMoney.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxMoney.Visible = true;
            this.colIncomeTaxMoney.Width = 0x4e;
            this.colRemainSalary.AppearanceCell.BackColor = Color.Ivory;
            this.colRemainSalary.AppearanceCell.Options.UseBackColor = true;
            this.colRemainSalary.AppearanceHeader.ForeColor = Color.Brown;
            this.colRemainSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colRemainSalary.Caption = "C\x00f2n lại sau khi trừ thuế TNCN";
            this.colRemainSalary.ColumnEdit = this.repCalculator;
            this.colRemainSalary.FieldName = "RemainSalary";
            this.colRemainSalary.Name = "colRemainSalary";
            this.colRemainSalary.OptionsColumn.ReadOnly = true;
            this.colRemainSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colRemainSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colRemainSalary.Visible = true;
            this.colRemainSalary.Width = 80;
            this.gridBand11.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand11.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand11.Caption = "Sau thuế";
            this.gridBand11.Columns.Add(this.colUnion);
            this.gridBand11.Columns.Add(this.colAdvance);
            this.gridBand11.Columns.Add(this.colSalaryPlus);
            this.gridBand11.Columns.Add(this.colSalaryMinus);
            this.gridBand11.Name = "gridBand11";
            this.gridBand11.Width = 0x12e;
            this.colUnion.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion.AppearanceCell.Options.UseBackColor = true;
            this.colUnion.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion.ColumnEdit = this.repCalculator;
            this.colUnion.FieldName = "Union";
            this.colUnion.Name = "colUnion";
            this.colUnion.OptionsColumn.ReadOnly = true;
            this.colUnion.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion.Visible = true;
            this.colUnion.Width = 0x4d;
            this.colAdvance.AppearanceCell.BackColor = Color.Azure;
            this.colAdvance.AppearanceCell.Options.UseBackColor = true;
            this.colAdvance.AppearanceHeader.ForeColor = Color.Blue;
            this.colAdvance.AppearanceHeader.Options.UseForeColor = true;
            this.colAdvance.Caption = "Tạm ứng";
            this.colAdvance.ColumnEdit = this.repCalculator;
            this.colAdvance.FieldName = "Advance";
            this.colAdvance.Name = "colAdvance";
            this.colAdvance.OptionsColumn.ReadOnly = true;
            this.colAdvance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAdvance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAdvance.Visible = true;
            this.colSalaryPlus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlus.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlus.ColumnEdit = this.repCalculator;
            this.colSalaryPlus.FieldName = "SalaryPlus";
            this.colSalaryPlus.Name = "colSalaryPlus";
            this.colSalaryPlus.OptionsColumn.ReadOnly = true;
            this.colSalaryPlus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlus.Visible = true;
            this.colSalaryMinus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinus.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinus.ColumnEdit = this.repCalculator;
            this.colSalaryMinus.FieldName = "SalaryMinus";
            this.colSalaryMinus.Name = "colSalaryMinus";
            this.colSalaryMinus.OptionsColumn.ReadOnly = true;
            this.colSalaryMinus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinus.Visible = true;
            this.gridBand1.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand1.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand1.Caption = "Thực l\x00e3nh && Thanh to\x00e1n lương";
            this.gridBand1.Columns.Add(this.colSalary);
            this.gridBand1.Columns.Add(this.colSalaryPay);
            this.gridBand1.Columns.Add(this.colSalaryDebt);
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0xea;
            this.colSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colSalary.AppearanceCell.Options.UseBackColor = true;
            this.colSalary.AppearanceCell.Options.UseFont = true;
            this.colSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colSalary.Caption = "Tổng thực l\x00e3nh";
            this.colSalary.ColumnEdit = this.repCalculator;
            this.colSalary.FieldName = "Salary";
            this.colSalary.Name = "colSalary";
            this.colSalary.OptionsColumn.ReadOnly = true;
            this.colSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalary.Visible = true;
            this.colSalary.Width = 0x54;
            this.colClockingError.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingError.AppearanceCell.Options.UseBackColor = true;
            this.colClockingError.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingError.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingError.Caption = "Chấm c\x00f4ng sai";
            this.colClockingError.FieldName = "ClockingError";
            this.colClockingError.Name = "colClockingError";
            this.colClockingError.OptionsColumn.ReadOnly = true;
            this.colClockingError.Visible = true;
            this.colClockingErrorBegin.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingErrorBegin.AppearanceCell.Options.UseBackColor = true;
            this.colClockingErrorBegin.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingErrorBegin.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingErrorBegin.Caption = "Kh\x00f4ng chấm v\x00e0o";
            this.colClockingErrorBegin.FieldName = "ClockingErrorBegin";
            this.colClockingErrorBegin.Name = "colClockingErrorBegin";
            this.colClockingErrorBegin.OptionsColumn.ReadOnly = true;
            this.colClockingErrorBegin.Visible = true;
            this.colClockingErrorEnd.AppearanceCell.BackColor = Color.GhostWhite;
            this.colClockingErrorEnd.AppearanceCell.Options.UseBackColor = true;
            this.colClockingErrorEnd.AppearanceHeader.ForeColor = Color.Purple;
            this.colClockingErrorEnd.AppearanceHeader.Options.UseForeColor = true;
            this.colClockingErrorEnd.Caption = "Kh\x00f4ng chấm ra";
            this.colClockingErrorEnd.FieldName = "ClockingErrorEnd";
            this.colClockingErrorEnd.Name = "colClockingErrorEnd";
            this.colClockingErrorEnd.OptionsColumn.ReadOnly = true;
            this.colClockingErrorEnd.Visible = true;
            this.panelControl1.BorderStyle = BorderStyles.NoBorder;
            this.panelControl1.Controls.Add(this.flowLayoutPanel3);
            this.panelControl1.Controls.Add(this.flowLayoutPanel2);
            this.panelControl1.Controls.Add(this.flowLayoutPanel1);
            this.panelControl1.Controls.Add(this.lbMessage);
            this.panelControl1.Dock = DockStyle.Top;
            this.panelControl1.Location = new Point(0x13, 0x1a);
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Size = new Size(0x41e, 0x2f);
            this.panelControl1.TabIndex = 9;
            this.flowLayoutPanel3.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel3.Controls.Add(this.xucExpandCollapseButton1);
            this.flowLayoutPanel3.Controls.Add(this.lbGroupName);
            this.flowLayoutPanel3.Controls.Add(this.lbDepartmentName);
            this.flowLayoutPanel3.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel3.Location = new Point(0x264, 0x16);
            this.flowLayoutPanel3.Name = "flowLayoutPanel3";
            this.flowLayoutPanel3.Size = new Size(0x1b7, 0x15);
            this.flowLayoutPanel3.TabIndex = 8;
            this.xucExpandCollapseButton1.Location = new Point(0x1a3, 3);
            this.xucExpandCollapseButton1.Name = "xucExpandCollapseButton1";
            this.xucExpandCollapseButton1.Size = new Size(0x11, 15);
            this.xucExpandCollapseButton1.TabIndex = 5;
            this.xucExpandCollapseButton1.ExpandCollapsed += new xucExpandCollapseButton.ExpandCollapsedHander(this.xucExpandCollapseButton1_ExpandCollapsed);
            this.lbGroupName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbGroupName.Location = new Point(0x15b, 3);
            this.lbGroupName.Name = "lbGroupName";
            this.lbGroupName.Size = new Size(0x42, 13);
            this.lbGroupName.TabIndex = 4;
            this.lbGroupName.Text = " - GroupName";
            this.lbDepartmentName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbDepartmentName.Location = new Point(0x101, 3);
            this.lbDepartmentName.Name = "lbDepartmentName";
            this.lbDepartmentName.Size = new Size(0x54, 13);
            this.lbDepartmentName.TabIndex = 3;
            this.lbDepartmentName.Text = "DepartmentName";
            this.flowLayoutPanel2.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.flowLayoutPanel2.Controls.Add(this.lbBranchName);
            this.flowLayoutPanel2.Controls.Add(this.lbCompanyName);
            this.flowLayoutPanel2.FlowDirection = FlowDirection.RightToLeft;
            this.flowLayoutPanel2.Location = new Point(0x264, 1);
            this.flowLayoutPanel2.Name = "flowLayoutPanel2";
            this.flowLayoutPanel2.Size = new Size(0x1b7, 0x12);
            this.flowLayoutPanel2.TabIndex = 7;
            this.lbBranchName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbBranchName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbBranchName.Appearance.Options.UseFont = true;
            this.lbBranchName.Location = new Point(0x15c, 3);
            this.lbBranchName.Name = "lbBranchName";
            this.lbBranchName.Size = new Size(0x58, 14);
            this.lbBranchName.TabIndex = 2;
            this.lbBranchName.Text = " - BranchName";
            this.lbCompanyName.Anchor = AnchorStyles.Right | AnchorStyles.Top;
            this.lbCompanyName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbCompanyName.Appearance.Options.UseFont = true;
            this.lbCompanyName.Location = new Point(0xfc, 3);
            this.lbCompanyName.Name = "lbCompanyName";
            this.lbCompanyName.Size = new Size(90, 14);
            this.lbCompanyName.TabIndex = 1;
            this.lbCompanyName.Text = "CompanyName";
            this.flowLayoutPanel1.Controls.Add(this.simpleButton1);
            this.flowLayoutPanel1.Controls.Add(this.lbSalaryName);
            this.flowLayoutPanel1.Controls.Add(this.lbMessage1);
            this.flowLayoutPanel1.Controls.Add(this.ptLock);
            this.flowLayoutPanel1.Controls.Add(this.ptFinish);
            this.flowLayoutPanel1.Location = new Point(3, 4);
            this.flowLayoutPanel1.Name = "flowLayoutPanel1";
            this.flowLayoutPanel1.Size = new Size(0x25b, 20);
            this.flowLayoutPanel1.TabIndex = 4;
            this.simpleButton1.Appearance.Font = new Font("Lucida Console", 9.25f);
            this.simpleButton1.Appearance.Options.UseFont = true;
            this.simpleButton1.Location = new Point(3, 3);
            this.simpleButton1.Name = "simpleButton1";
            this.simpleButton1.Size = new Size(30, 15);
            this.simpleButton1.TabIndex = 12;
            this.simpleButton1.Text = "▼";
            this.simpleButton1.Click += new EventHandler(this.simpleButton1_Click);
            this.lbSalaryName.Appearance.Font = new Font("Tahoma", 9f, FontStyle.Bold);
            this.lbSalaryName.Appearance.Options.UseFont = true;
            this.lbSalaryName.Location = new Point(0x27, 3);
            this.lbSalaryName.Name = "lbSalaryName";
            this.lbSalaryName.Size = new Size(0xb1, 14);
            this.lbSalaryName.TabIndex = 0;
            this.lbSalaryName.Text = "Bảng T\x00ednh Lương Th\x00e1ng [00]";
            this.lbMessage1.Appearance.Font = new Font("Tahoma", 9f);
            this.lbMessage1.Appearance.ForeColor = Color.Red;
            this.lbMessage1.Appearance.Options.UseFont = true;
            this.lbMessage1.Appearance.Options.UseForeColor = true;
            this.lbMessage1.Location = new Point(0xde, 3);
            this.lbMessage1.Name = "lbMessage1";
            this.lbMessage1.Padding = new Padding(4, 0, 0, 0);
            this.lbMessage1.Size = new Size(0x14b, 14);
            this.lbMessage1.TabIndex = 1;
            this.lbMessage1.Text = ">> Nhấn n\x00fat \"Tạo\" để khởi tạo bảng lương cho th\x00e1ng n\x00e0y!";
            this.lbMessage1.Visible = false;
            this.ptLock.Image = MsgResc.lock_open__1_;
            this.ptLock.Location = new Point(560, 0);
            this.ptLock.Margin = new Padding(4, 0, 0, 0);
            this.ptLock.Name = "ptLock";
            this.ptLock.Size = new Size(0x10, 0x10);
            this.ptLock.TabIndex = 10;
            this.ptLock.TabStop = false;
            this.ptLock.Visible = false;
            this.ptFinish.Image = MsgResc.check;
            this.ptFinish.Location = new Point(580, 0);
            this.ptFinish.Margin = new Padding(4, 0, 0, 0);
            this.ptFinish.Name = "ptFinish";
            this.ptFinish.Size = new Size(0x10, 0x10);
            this.ptFinish.TabIndex = 11;
            this.ptFinish.TabStop = false;
            this.ptFinish.Visible = false;
            this.lbMessage.Appearance.ForeColor = Color.DarkBlue;
            this.lbMessage.Appearance.Options.UseForeColor = true;
            this.lbMessage.Location = new Point(4, 0x1c);
            this.lbMessage.Name = "lbMessage";
            this.lbMessage.Size = new Size(0x19f, 13);
            this.lbMessage.TabIndex = 2;
            this.lbMessage.Text = "[Nếu bạn chưa ph\x00e1t sinh dữ liệu chấm c\x00f4ng của th\x00e1ng n\x00e0y th\x00ec vui l\x00f2ng thực hiện trước]";
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.popupMenu1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiSalaryPay) });
            this.popupMenu1.Manager = this.barManager1;
            this.popupMenu1.Name = "popupMenu1";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.panelControl1);
            base.Controls.Add(this.dpFooter);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucSalary";
            base.Size = new Size(0x431, 0x27b);
            this.repCalculator.EndInit();
            this.barManager1.EndInit();
            this.repMonth.EndInit();
            this.repYear.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.dpFooter.ResumeLayout(false);
            this.dockPanel2_Container.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.panelControl1.EndInit();
            this.panelControl1.ResumeLayout(false);
            this.panelControl1.PerformLayout();
            this.flowLayoutPanel3.ResumeLayout(false);
            this.flowLayoutPanel3.PerformLayout();
            this.flowLayoutPanel2.ResumeLayout(false);
            this.flowLayoutPanel2.PerformLayout();
            this.flowLayoutPanel1.ResumeLayout(false);
            this.flowLayoutPanel1.PerformLayout();
            ((ISupportInitialize)this.ptLock).EndInit();
            ((ISupportInitialize)this.ptFinish).EndInit();
            this.popupMenu1.EndInit();
            base.ResumeLayout(false);
        }

        private void InitInterface()
        {
            if (!(this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.bbiRecal.Enabled = true;
                this.lbMessage.Text = "Đ\x00e3 mở sổ - Được ph\x00e9p chỉnh sửa bảng t\x00ednh lương th\x00e1ng n\x00e0y";
                this.xucSalaryCard1.Lock(false);
            }
            else if (!(!this.m_IsLock || this.m_IsFinish))
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = true;
                this.bbiFinish.Enabled = true;
                this.ptFinish.Visible = false;
                this.bbiRecal.Enabled = false;
                this.lbMessage.Text = "Đ\x00e3 kho\x00e1 sổ - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.xucSalaryCard1.Lock(true);
            }
            else if (!(this.m_IsLock || !this.m_IsFinish))
            {
                this.bbiLock.Enabled = true;
                this.ptLock.Visible = false;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.bbiRecal.Enabled = true;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.xucSalaryCard1.Lock(true);
            }
            else if (this.m_IsLock && this.m_IsFinish)
            {
                this.bbiLock.Enabled = false;
                this.ptLock.Visible = true;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.ptFinish.Visible = true;
                this.bbiRecal.Enabled = false;
                this.lbMessage.Text = "Đ\x00e3 ho\x00e0n th\x00e0nh bảng t\x00ednh lương của th\x00e1ng n\x00e0y - Kh\x00f4ng được ph\x00e9p chỉnh sửa";
                this.xucSalaryCard1.Lock(true);
            }
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
            {
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                if (hrm_salary_tablelist.OvertimeSaturdayType == 0)
                {
                    this.colOvertime200.Caption = "TC. Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
                }
                else
                {
                    this.colOvertime200.Caption = "TC. T7 & Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. T7 & Chủ nhật (h)";
                }
            }
            else
            {
                DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
                dic_salary_formula.Get();
                if (dic_salary_formula.OvertimeSaturdayType == 0)
                {
                    this.colOvertime200.Caption = "TC. Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. Chủ nhật (h)";
                }
                else
                {
                    this.colOvertime200.Caption = "TC. T7 & Chủ nhật (h)";
                    this.colOvertime260.Caption = "TCĐ. T7 & Chủ nhật (h)";
                }
            }
        }

        private void InitMultiLanguages()
        {
            this.bbeMonth.Caption = MultiLanguages.GetString("tbl_Salary", "Month", this.bbeMonth.Caption);
            this.bbeYear.Caption = MultiLanguages.GetString("tbl_Salary", "Year", this.bbeYear.Caption);
            this.bbiPrint.Caption = MultiLanguages.GetString("tbl_Salary", "Print", this.bbiPrint.Caption);
            this.bbiExport.Caption = MultiLanguages.GetString("tbl_Salary", "Export", this.bbiExport.Caption);
            this.bbiReload.Caption = MultiLanguages.GetString("tbl_Salary", "Refresh", this.bbiReload.Caption);
            this.bbiClose.Caption = MultiLanguages.GetString("tbl_Salary", "Close", this.bbiClose.Caption);
            this.bbiRecal.Caption = MultiLanguages.GetString("tbl_Salary", "Recalculator", this.bbiRecal.Caption);
            this.bbeSalaryName.Caption = MultiLanguages.GetString("tbl_Salary", "SalaryName", this.bbeSalaryName.Caption);
            this.bbiLock.Caption = MultiLanguages.GetString("tbl_Salary", "Lock", this.bbiLock.Caption);
            this.bbiOpen.Caption = MultiLanguages.GetString("tbl_Salary", "Open", this.bbiOpen.Caption);
            this.bbiFinish.Caption = MultiLanguages.GetString("tbl_Salary", "Finish", this.bbiFinish.Caption);
            this.colEmployeeCode.Caption = MultiLanguages.GetString("tbl_Salary", "EmployeeCode", this.colEmployeeCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_Salary", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_Salary", "LastName", this.colLastName.Caption);
            this.colCoefficientSalary.Caption = MultiLanguages.GetString("tbl_Salary", "CoefficientSalary", this.colCoefficientSalary.Caption);
            this.colBasicSalary.Caption = MultiLanguages.GetString("tbl_Salary", "BasicSalary", this.colBasicSalary.Caption);
            this.colInsuranceSalary.Caption = MultiLanguages.GetString("tbl_Salary", "InsuranceSalary", this.colInsuranceSalary.Caption);
            this.colStipulatedTime.Caption = MultiLanguages.GetString("tbl_Salary", "StipulatedTime", this.colStipulatedTime.Caption);
            this.colWorkHour.Caption = MultiLanguages.GetString("tbl_Salary", "WorkHour", this.colWorkHour.Caption);
            this.colLateEarlyHour.Caption = MultiLanguages.GetString("tbl_Salary", "LateEarlyHour", this.colLateEarlyHour.Caption);
            this.colMinusLateEarly.Caption = MultiLanguages.GetString("tbl_Salary", "MinusLateEarly", this.colMinusLateEarly.Caption);
            this.colMinusMoney.Caption = MultiLanguages.GetString("tbl_Salary", "MinusMoney", this.colMinusMoney.Caption);
            this.colAllowanceInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "AllowanceInsurance", this.colAllowanceInsurance.Caption);
            this.colAllowance.Caption = MultiLanguages.GetString("tbl_Salary", "Allowance", this.colAllowance.Caption);
            this.colTotalSalary.Caption = MultiLanguages.GetString("tbl_Salary", "TotalSalary", this.colTotalSalary.Caption);
            this.colSocialInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "SocialInsurance", this.colSocialInsurance.Caption);
            this.colHealthInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "HealthInsurance", this.colHealthInsurance.Caption);
            this.colUnemploymentInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "UnemploymentInsurance", this.colUnemploymentInsurance.Caption);
            this.colUnion.Caption = MultiLanguages.GetString("tbl_Salary", "Union", this.colUnion.Caption);
            this.colIncomeTax.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTax", this.colIncomeTax.Caption);
            this.colNumberDepend.Caption = MultiLanguages.GetString("tbl_Salary", "NumberDepend", this.colNumberDepend.Caption);
            this.colDependMoney.Caption = MultiLanguages.GetString("tbl_Salary", "DependMoney", this.colDependMoney.Caption);
            this.colIncomeTaxRemain.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTaxRemain", this.colIncomeTaxRemain.Caption);
            this.colIncomeTaxMoney.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTaxMoney", this.colIncomeTaxMoney.Caption);
            this.colRemainSalary.Caption = MultiLanguages.GetString("tbl_Salary", "RemainSalary", this.colRemainSalary.Caption);
            this.colAdvance.Caption = MultiLanguages.GetString("tbl_Salary", "Advance", this.colAdvance.Caption);
            this.colAssignment.Caption = MultiLanguages.GetString("tbl_Salary", "Assignment", this.colAssignment.Caption);
            this.colSalaryPlus.Caption = MultiLanguages.GetString("tbl_Salary", "SalaryPlus", this.colSalaryPlus.Caption);
            this.colSalaryMinus.Caption = MultiLanguages.GetString("tbl_Salary", "SalaryMinus", this.colSalaryMinus.Caption);
            this.colSalary.Caption = MultiLanguages.GetString("tbl_Salary", "Salary", this.colSalary.Caption);
        }

        private void InitSalaryOvertimeColumn()
        {
            DIC_SALARY_FORMULA dic_salary_formula = new DIC_SALARY_FORMULA();
            dic_salary_formula.Get();
            if (dic_salary_formula.IsGroupSalaryOvertime)
            {
                this.bandSalaryOvertime.Visible = true;
            }
            else
            {
                this.bandSalaryOvertime.Visible = false;
            }
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                Guid salaryTableListID = this.m_SalaryTableListID;
                this.gcList.DataSource = new HRM_SALARY().GetList(Level, Code, salaryTableListID);
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                this.colSocialInsurance.Caption = "BHXH (" + hrm_salary_tablelist.SocialInsurance.ToString() + "%)";
                this.colHealthInsurance.Caption = "BHYT (" + hrm_salary_tablelist.HealthInsurance.ToString() + "%)";
                this.colUnemploymentInsurance.Caption = "BHTN (" + hrm_salary_tablelist.UnemploymentInsurance.ToString() + "%)";
                this.colInsurance.Caption = "BHXH, BHYT, BHTN (" + (((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.HealthInsurance) + hrm_salary_tablelist.UnemploymentInsurance)).ToString() + "%)";
                this.colSocialInsurance1.Caption = "BHXH (" + hrm_salary_tablelist.SocialInsurance1.ToString() + "%)";
                this.colHealthInsurance1.Caption = "BHYT (" + hrm_salary_tablelist.HealthInsurance1.ToString() + "%)";
                this.colUnemploymentInsurance1.Caption = "BHTN (" + hrm_salary_tablelist.UnemploymentInsurance1.ToString() + "%)";
                this.colInsurance1.Caption = "BHXH, BHYT, BHTN (" + (((hrm_salary_tablelist.SocialInsurance1 + hrm_salary_tablelist.HealthInsurance1) + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
            }
            catch
            {
            }
            this.InitInterface();
        }

        private void LoadInterface()
        {
            if (LoadStyle())
            {
                this.dpFooter.Visibility = DockVisibility.Visible;
            }
            else
            {
                this.dpFooter.Visibility = DockVisibility.AutoHide;
            }
        }

        private string LoadMailContent()
        {
            try
            {
                DataSet set = new DataSet();
                set.ReadXml(Application.StartupPath + @"\Layout\sendMailSalary.xml");
                return set.Tables[0].Rows[0][0].ToString();
            }
            catch
            {
                return "Ch\x00e0o [Giới t\x00ednh] [Họ l\x00f3t] [T\x00ean] th\x00e2n mến![Xuống d\x00f2ng]Hiện tại phiếu t\x00ednh lương th\x00e1ng [Th\x00e1ng]/[Năm] đ\x00e3 c\x00f3. [Giới t\x00ednh] c\x00f3 thể download file k\x00e8m theo dưới đ\x00e2y để tham khảo. Nếu c\x00f3 g\x00ec thắc mắc cần được giải đ\x00e1p, [Giới t\x00ednh] c\x00f3 thể phản hồi trở lại bằng địa chỉ email n\x00e0y.[Xuống d\x00f2ng]Th\x00e2n ch\x00e0o! Ch\x00fac vui vẻ!";
            }
        }

        private void LoadSalaryCard()
        {
            try
            {
                this.dpFooter.Text = "PHIẾU LƯƠNG NH\x00c2N VI\x00caN (" + this.bbeSalaryName.EditValue.ToString().ToUpper() + ") - " + this.gbList.GetFocusedRowCellValue(this.colFirstName).ToString().ToUpper() + " " + this.gbList.GetFocusedRowCellValue(this.colLastName).ToString().ToUpper() + " (" + this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString().ToUpper() + ")";
            }
            catch
            {
                this.dpFooter.Text = "PHIẾU LƯƠNG NH\x00c2N VI\x00caN";
            }
            try
            {
                this.m_EmployeeCode = this.gbList.GetFocusedRowCellValue(this.colEmployeeCode).ToString();
                this.xucSalaryCard1.SetData(this.m_SalaryTableListID, this.m_EmployeeCode, this.m_Month, this.m_Year);
            }
            catch
            {
            }
        }

        private void LoadSalaryMonth()
        {
            this.bbeSalaryName.EditValue = "Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString();
            this.lbSalaryName.Text = "Bảng T\x00ednh Lương Th\x00e1ng " + this.m_Month.ToString() + " - " + this.m_Year.ToString();
            HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
            if (!hrm_salary_tablelist.Exist(this.m_Month, this.m_Year))
            {
                this.bbiAdd.Visibility = BarItemVisibility.Always;
                this.bbiRecal.Visibility = BarItemVisibility.Never;
                this.bbiLock.Enabled = false;
                this.bbiOpen.Enabled = false;
                this.bbiFinish.Enabled = false;
                this.m_SalaryTableListID = Guid.Empty;
                this.gcList.DataSource = null;
                this.lbMessage1.Visible = true;
                this.xucSalaryCard1.Clear();
            }
            else
            {
                this.bbiAdd.Visibility = BarItemVisibility.Never;
                this.bbiRecal.Visibility = BarItemVisibility.Always;
                this.lbMessage1.Visible = false;
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                this.m_IsLock = hrm_salary_tablelist.IsLock;
                this.m_IsFinish = hrm_salary_tablelist.IsFinish;
                this.InitInterface();
                this.m_SalaryTableListID = hrm_salary_tablelist.SalaryTableListID;
                this.LoadGrid(this.m_Level, this.m_Code);
                this.LoadSalaryCard();
            }
        }

        private static bool LoadStyle()
        {
            try
            {
                DataSet set = new DataSet();
                set.ReadXml(Application.StartupPath + @"\LayoutControl\xucSalary.xml");
                return bool.Parse(set.Tables[0].Rows[0][0].ToString());
            }
            catch
            {
                return true;
            }
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void RaisePayEventHander(int Month, int Year)
        {
            if (this.PayEvented != null)
            {
                this.PayEvented(this, Month, Year);
            }
        }

        private void repMonth_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadSalaryMonth();
        }

        private void repMonth_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Month = Convert.ToDateTime(e.NewValue.ToString()).Month;
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadSalaryMonth();
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        private static void SaveStyle(bool ShowFooter)
        {
            DataSet set = new DataSet();
            using (DataTable table = new DataTable())
            {
                table.Columns.Add("ShowFooter", typeof(string));
                object[] objArray = new object[] { ShowFooter.ToString() };
                table.Rows.Add(new object[0]);
                table.Rows[0][0] = objArray[0];
                set.Tables.Add(table);
            }
            try
            {
                set.WriteXml(Application.StartupPath + @"\LayoutControl\xucSalary.xml");
            }
            catch
            {
            }
        }

        private void SendMail(string Content, bool Attach)
        {
            if (Content == "")
            {
                Content = this.LoadMailContent();
            }
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            int[] selectedRows = this.gbList.GetSelectedRows();
            for (int i = selectedRows.Length; i > 0; i--)
            {
                string employeeCode = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode").ToString();
                hrm_employee.Get(employeeCode);
                if (hrm_employee.Email == "")
                {
                    XtraMessageBox.Show("Chưa thiết lập địa chỉ email cho nh\x00e2n vi\x00ean n\x00e0y!");
                    break;
                }
                rptSalary2 rpt = new rptSalary2(this.m_Month, this.m_Year, employeeCode);
                SendReportMail mail = new SendReportMail();
                string newValue = "";
                if (hrm_employee.Sex)
                {
                    newValue = "Anh";
                }
                else
                {
                    newValue = "Chị";
                }
                string content = Content;
                content = content.Replace("[M\x00e3 nh\x00e2n vi\x00ean]", employeeCode).Replace("[Họ l\x00f3t]", hrm_employee.FirstName).Replace("[T\x00ean]", hrm_employee.LastName).Replace("[Ng\x00e0y sinh]", hrm_employee.BirthdayDay.ToString() + "/" + hrm_employee.BirthdayMonth.ToString() + "/" + hrm_employee.BirthdayYear.ToString()).Replace("[Giới t\x00ednh]", newValue).Replace("[Nơi sinh]", hrm_employee.BirthPlace).Replace("[Địa chỉ]", hrm_employee.MainAddress).Replace("[Tạm tr\x00fa]", hrm_employee.ContactAddress).Replace("[CMND]", hrm_employee.IDCard).Replace("[Email]", hrm_employee.Email).Replace("[Điện thoại]", hrm_employee.CellPhone).Replace("[Chức vụ]", hrm_employee.Position).Replace("[Chi nh\x00e1nh]", hrm_employee.BranchName).Replace("[Ph\x00f2ng ban]", hrm_employee.DepartmentName).Replace("[Tổ nh\x00f3m]", hrm_employee.GroupName).Replace("[Lương căn bản]", hrm_employee.BasicSalary.ToString("#,0")).Replace("[Th\x00e1ng]", this.m_Month.ToString()).Replace("[Năm]", this.m_Year.ToString()).Replace("[Xuống d\x00f2ng]", "<br/>");
                mail.Send(hrm_employee.Email, MyLogin.Account + " - " + "" , //MyInfo.Company, 
                     "Phiếu Lương Th\x00e1ng " + this.m_Month.ToString() + "/" + this.m_Year.ToString(), content, rpt, hrm_employee.EmployeeCode + "_" + this.m_Month.ToString() + this.m_Year.ToString(), Attach);
            }
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.popupMenu1.ShowPopup(Control.MousePosition);
        }

        private void UpdateAllowanceRow()
        {
            DIC_ALLOWANCE dic_allowance = new DIC_ALLOWANCE();
            HRM_SALARY hrm_salary = new HRM_SALARY();
            foreach (DataRow row in dic_allowance.GetList().Rows)
            {
                try
                {
                    this.gbList.SetFocusedRowCellValue(row["AllowanceCode"].ToString(), hrm_salary.GetTotalAllowance(this.m_SalaryTableListID, this.m_EmployeeCode, row["AllowanceCode"].ToString(), false));
                    this.gbList.SetFocusedRowCellValue("Tax" + row["AllowanceCode"].ToString(), hrm_salary.GetTotalAllowance(this.m_SalaryTableListID, this.m_EmployeeCode, row["AllowanceCode"].ToString(), true));
                }
                catch
                {
                }
            }
        }

        private void UpdateRow(HRM_SALARY Item)
        {
            this.gbList.SetFocusedRowCellValue(this.colCoefficientSalary, Item.CoefficientSalary);
            this.gbList.SetFocusedRowCellValue(this.colBasicSalary, Item.BasicSalary);
            this.gbList.SetFocusedRowCellValue(this.colInsuranceSalary, Item.InsuranceSalary);
            this.gbList.SetFocusedRowCellValue(this.colAllowanceInsurance, Item.AllowanceInsurance);
            this.gbList.SetFocusedRowCellValue(this.colAllowance, Item.Allowance);
            this.gbList.SetFocusedRowCellValue(this.colTotalSalary, Item.TotalSalary);
            this.gbList.SetFocusedRowCellValue(this.colAssignment, Item.Assignment);
            this.gbList.SetFocusedRowCellValue(this.colAssignmentPay, Item.AssignmentPay);
            this.gbList.SetFocusedRowCellValue(this.colAssignmentDebt, Item.AssignmentDebt);
            this.gbList.SetFocusedRowCellValue(this.colStipulatedTime, Item.StipulatedTime);
            this.gbList.SetFocusedRowCellValue(this.colWorkHour, Item.WorkHour);
            this.gbList.SetFocusedRowCellValue(this.colLateEarlyHour, Item.LateEarlyHour);
            this.gbList.SetFocusedRowCellValue(this.colMinusLateEarly, Item.MinusLateEarly);
            this.gbList.SetFocusedRowCellValue(this.colMinusMoney, Item.MinusMoney);
            this.gbList.SetFocusedRowCellValue(this.colWorkSalary, Item.WorkSalary);
            this.gbList.SetFocusedRowCellValue(this.colSocialInsurance, Item.SocialInsurance);
            this.gbList.SetFocusedRowCellValue(this.colHealthInsurance, Item.HealthInsurance);
            this.gbList.SetFocusedRowCellValue(this.colUnemploymentInsurance, Item.UnemploymentInsurance);
            this.gbList.SetFocusedRowCellValue(this.colInsurance, Item.Insurance);
            this.gbList.SetFocusedRowCellValue(this.colSalaryPlusBefore, Item.SalaryPlusBefore);
            this.gbList.SetFocusedRowCellValue(this.colSalaryMinusBefore, Item.SalaryMinusBefore);
            this.gbList.SetFocusedRowCellValue(this.colWorkSalary1, Item.WorkSalary1);
            this.gbList.SetFocusedRowCellValue(this.colIncomeTax, Item.IncomeTax);
            this.gbList.SetFocusedRowCellValue(this.colNumberDepend, Item.NumberDepend);
            this.gbList.SetFocusedRowCellValue(this.colDependMoney, Item.DependMoney);
            this.gbList.SetFocusedRowCellValue(this.colIncomeTaxRemain, Item.IncomeTaxRemain);
            this.gbList.SetFocusedRowCellValue(this.colIncomeTaxMoney, Item.IncomeTaxMoney);
            this.gbList.SetFocusedRowCellValue(this.colRemainSalary, Item.RemainSalary);
            this.gbList.SetFocusedRowCellValue(this.colAdvance, Item.Advance);
            this.gbList.SetFocusedRowCellValue(this.colUnion, Item.Union);
            this.gbList.SetFocusedRowCellValue(this.colUnion1, Item.Union1);
            this.gbList.SetFocusedRowCellValue(this.colSalaryPlus, Item.SalaryPlus);
            this.gbList.SetFocusedRowCellValue(this.colSalaryMinus, Item.SalaryMinus);
            this.gbList.SetFocusedRowCellValue(this.colSalary, Item.Salary);
            this.gbList.SetFocusedRowCellValue(this.colSalaryPay, Item.SalaryPay);
            this.gbList.SetFocusedRowCellValue(this.colSalaryDebt, Item.SalaryDebt);
            this.UpdateAllowanceRow();
        }

        private void xucExpandCollapseButton1_ExpandCollapsed(object sender, bool IsExpand)
        {
            if (IsExpand)
            {
                this.gbList.OptionsView.ShowGroupPanel = true;
            }
            else
            {
                this.gbList.OptionsView.ShowGroupPanel = false;
            }
        }

        private void xucSalaryCard1_Updated(object sender)
        {
            HRM_SALARY item = new HRM_SALARY();
            item.Get(this.m_SalaryTableListID, this.m_EmployeeCode);
            this.UpdateRow(item);
        }

        public delegate void ClosedHander(object sender);

        public delegate void PayEventHander(object sender, int Month, int Year);
    }
}